home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-06-30 | 107.6 KB | [STAK/WILD] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
id metadata |
---|
key | value |
---|
macFileType | [STAK] |
macFileCreator | [WILD] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 58 48 6f 6d 65 00 | 00 00 00 00 00 00 00 00 |..XHome.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 00 be 60 00 | 00 ef 47 a8 41 ff 2a a8 |......`.|..G.A.*.|
|00000060| 57 3b 83 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |W;......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a4 64 00 00 |........|.....d..|
|00000080| 00 00 6e 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..n.STAK|........|
|00000090| 00 00 00 0a 00 00 be 60 | 00 00 6e 00 00 00 00 00 |.......`|..n.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a 27 00 00 00 01 |........|...'....|
|000000b0| 00 00 0b 52 00 00 09 12 | 00 00 00 00 00 00 00 00 |...R....|........|
|000000c0| 00 00 00 00 09 69 73 89 | 00 04 00 00 18 00 00 00 |.....is.|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 10 80 00 | 02 10 80 00 02 10 80 00 |........|........|
|000000f0| cd 13 10 51 00 00 00 00 | 00 28 00 40 01 7e 02 40 |...Q....|.(.@.~.@|
|00000100| 00 00 00 00 01 90 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 97 00 00 0c 88 | 01 56 02 00 00 00 00 00 |........|.V......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 2d 2d 20 74 79 70 65 20 | 22 73 68 6f 77 66 69 65 |-- type |"showfie|
|00000690| 6c 64 73 22 20 69 6e 74 | 6f 20 6d 65 73 73 61 67 |lds" int|o messag|
|000006a0| 65 20 62 6f 78 20 74 6f | 20 73 68 6f 77 20 61 6e |e box to| show an|
|000006b0| 64 20 68 69 64 65 20 62 | 67 20 66 69 65 6c 64 73 |d hide b|g fields|
|000006c0| 21 0d 0d 2d 2d 20 66 6c | 64 20 69 64 20 33 30 20 |!..-- fl|d id 30 |
|000006d0| 68 6f 6c 64 73 20 58 54 | 6f 6f 6c 73 20 43 6f 6d |holds XT|ools Com|
|000006e0| 70 69 6c 65 64 20 53 63 | 72 69 70 74 20 61 6e 64 |piled Sc|ript and|
|000006f0| 20 66 6c 64 20 69 64 20 | 33 31 20 68 6f 6c 64 73 | fld id |31 holds|
|00000700| 20 58 54 6f 6f 6c 73 20 | 52 65 73 6f 75 72 63 65 | XTools |Resource|
|00000710| 20 6c 69 73 74 0d 2d 2d | 20 69 66 20 74 68 65 72 | list.--| if ther|
|00000720| 65 20 69 73 20 61 20 58 | 54 6f 6f 6c 73 20 53 63 |e is a X|Tools Sc|
|00000730| 72 69 70 74 20 74 68 65 | 6e 20 6e 6f 20 72 65 73 |ript the|n no res|
|00000740| 6f 75 72 63 65 73 20 75 | 73 65 64 20 69 6e 20 74 |ources u|sed in t|
|00000750| 68 65 20 72 65 73 6f 75 | 72 63 65 20 4c 69 73 74 |he resou|rce List|
|00000760| 20 6d 61 79 20 62 65 0d | 2d 2d 20 65 72 61 73 65 | may be.|-- erase|
|00000770| 64 20 6f 72 20 72 65 6e | 61 6d 65 64 21 20 49 66 |d or ren|amed! If|
|00000780| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 58 54 6f | there i|s no XTo|
|00000790| 6f 6c 73 20 53 63 72 69 | 70 74 20 62 75 74 20 74 |ols Scri|pt but t|
|000007a0| 68 65 72 65 20 69 73 20 | 61 20 6c 69 73 74 20 74 |here is |a list t|
|000007b0| 68 65 6e 20 72 65 73 6f | 75 72 63 65 73 0d 2d 2d |hen reso|urces.--|
|000007c0| 20 69 6e 20 74 68 65 20 | 6c 69 73 74 20 6d 61 79 | in the |list may|
|000007d0| 20 62 65 20 72 65 6e 61 | 6d 65 64 20 62 75 74 20 | be rena|med but |
|000007e0| 6e 6f 74 20 65 72 61 73 | 65 64 21 20 54 6f 20 65 |not eras|ed! To e|
|000007f0| 72 61 73 65 20 61 20 72 | 65 73 6f 75 72 63 65 20 |rase a r|esource |
|00000800| 74 68 61 74 20 69 73 20 | 69 6e 20 74 68 65 20 58 |that is |in the X|
|00000810| 54 6f 6f 6c 73 0d 2d 2d | 20 6c 69 73 74 20 74 68 |Tools.--| list th|
|00000820| 65 20 72 65 73 6f 75 72 | 63 65 20 6d 75 73 74 20 |e resour|ce must |
|00000830| 66 69 72 73 74 20 62 65 | 20 65 72 61 73 65 64 20 |first be| erased |
|00000840| 66 72 6f 6d 20 74 68 65 | 20 6c 69 73 74 20 66 72 |from the| list fr|
|00000850| 6f 6d 20 77 69 74 68 69 | 6e 20 58 54 6f 6f 6c 73 |om withi|n XTools|
|00000860| 2e 0d 2d 2d 20 74 68 65 | 20 66 6f 72 6d 61 74 20 |..-- the| format |
|00000870| 66 6f 72 20 74 68 65 20 | 58 54 6f 6f 6c 73 20 6c |for the |XTools l|
|00000880| 69 73 74 20 69 73 3a 0d | 2d 2d 20 31 73 74 20 70 |ist is:.|-- 1st p|
|00000890| 6c 61 63 65 20 3d 20 6e | 75 6d 62 65 72 20 6f 66 |lace = n|umber of|
|000008a0| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 68 61 | the res|ource ha|
|000008b0| 6e 64 6c 65 72 0d 2d 2d | 20 32 6e 64 20 70 6c 61 |ndler.--| 2nd pla|
|000008c0| 63 65 20 3d 20 6f 72 64 | 65 72 20 6f 66 20 72 65 |ce = ord|er of re|
|000008d0| 73 6f 75 72 63 65 20 69 | 6e 20 72 65 73 6f 75 72 |source i|n resour|
|000008e0| 63 65 20 68 6f 6c 64 65 | 72 0d 2d 2d 20 33 72 64 |ce holde|r.-- 3rd|
|000008f0| 20 70 6c 61 63 65 20 3d | 20 72 65 73 6f 75 72 63 | place =| resourc|
|00000900| 65 20 4e 41 4d 45 0d 2d | 2d 20 34 74 68 20 70 6c |e NAME.-|- 4th pl|
|00000910| 61 63 65 20 3d 20 72 65 | 73 6f 75 72 63 65 20 54 |ace = re|source T|
|00000920| 59 50 45 0d 2d 2d 20 35 | 74 68 20 70 6c 61 63 65 |YPE.-- 5|th place|
|00000930| 20 3d 20 72 65 73 6f 75 | 72 63 65 20 49 44 0d 2d | = resou|rce ID.-|
|00000940| 2d 20 4f 54 48 45 52 20 | 50 4c 41 43 45 53 20 28 |- OTHER |PLACES (|
|00000950| 36 20 74 6f 20 31 35 3f | 29 20 68 6f 6c 64 20 70 |6 to 15?|) hold p|
|00000960| 61 72 61 6d 65 74 65 72 | 73 0d 0d 6f 6e 20 6f 70 |arameter|s..on op|
|00000970| 65 6e 53 74 61 63 6b 0d | 72 65 73 65 74 20 6d 65 |enStack.|reset me|
|00000980| 6e 75 62 61 72 0d 73 70 | 6c 61 73 68 53 63 72 65 |nubar.sp|lashScre|
|00000990| 65 6e 0d 6d 61 6b 65 58 | 48 6f 6d 65 4d 65 6e 75 |en.makeX|HomeMenu|
|000009a0| 0d 74 68 65 4c 65 76 65 | 6c 0d 65 6e 64 20 6f 70 |.theLeve|l.end op|
|000009b0| 65 6e 53 74 61 63 6b 0d | 0d 6f 6e 20 74 68 65 4c |enStack.|.on theL|
|000009c0| 65 76 65 6c 0d 67 6c 6f | 62 61 6c 20 6f 6c 64 55 |evel.glo|bal oldU|
|000009d0| 73 65 72 73 4c 65 76 65 | 6c 0d 67 65 74 20 74 68 |sersLeve|l.get th|
|000009e0| 65 20 75 73 65 72 6c 65 | 76 65 6c 0d 70 75 74 20 |e userle|vel.put |
|000009f0| 69 74 20 69 6e 74 6f 20 | 6f 6c 64 55 73 65 72 73 |it into |oldUsers|
|00000a00| 4c 65 76 65 6c 0d 73 65 | 74 20 74 68 65 20 75 73 |Level.se|t the us|
|00000a10| 65 72 6c 65 76 65 6c 20 | 74 6f 20 33 0d 65 6e 64 |erlevel |to 3.end|
|00000a20| 20 74 68 65 4c 65 76 65 | 6c 0d 0d 6f 6e 20 73 70 | theLeve|l..on sp|
|00000a30| 6c 61 73 68 53 63 72 65 | 65 6e 0d 73 68 6f 77 20 |lashScre|en.show |
|00000a40| 77 69 6e 64 6f 77 20 28 | 73 68 6f 72 74 20 6e 61 |window (|short na|
|00000a50| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|00000a60| 29 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 68 69 |).lock s|creen.hi|
|00000a70| 64 65 20 20 63 64 20 70 | 69 63 74 0d 73 68 6f 77 |de cd p|ict.show|
|00000a80| 20 20 62 67 20 70 69 63 | 74 0d 73 68 6f 77 20 62 | bg pic|t.show b|
|00000a90| 67 20 66 6c 64 20 69 64 | 20 32 37 0d 75 6e 6c 6f |g fld id| 27.unlo|
|00000aa0| 63 6b 20 73 63 72 65 65 | 6e 0d 73 65 74 20 63 75 |ck scree|n.set cu|
|00000ab0| 72 73 6f 72 20 74 6f 20 | 77 61 74 63 68 0d 77 61 |rsor to |watch.wa|
|00000ac0| 69 74 20 75 6e 74 69 6c | 20 74 68 65 20 6d 6f 75 |it until| the mou|
|00000ad0| 73 65 43 6c 69 63 6b 0d | 6c 6f 63 6b 20 73 63 72 |seClick.|lock scr|
|00000ae0| 65 65 6e 0d 73 68 6f 77 | 20 20 63 64 20 70 69 63 |een.show| cd pic|
|00000af0| 74 0d 68 69 64 65 20 20 | 62 67 20 70 69 63 74 0d |t.hide |bg pict.|
|00000b00| 68 69 64 65 20 62 67 20 | 66 6c 64 20 69 64 20 32 |hide bg |fld id 2|
|00000b10| 37 0d 65 6e 64 20 73 70 | 6c 61 73 68 53 63 72 65 |7.end sp|lashScre|
|00000b20| 65 6e 0d 0d 6f 6e 20 72 | 65 73 75 6d 65 53 74 61 |en..on r|esumeSta|
|00000b30| 63 6b 0d 72 65 73 65 74 | 20 6d 65 6e 75 62 61 72 |ck.reset| menubar|
|00000b40| 0d 6d 61 6b 65 58 48 6f | 6d 65 4d 65 6e 75 0d 74 |.makeXHo|meMenu.t|
|00000b50| 68 65 4c 65 76 65 6c 0d | 73 68 6f 77 20 63 64 20 |heLevel.|show cd |
|00000b60| 70 69 63 74 0d 65 6e 64 | 20 72 65 73 75 6d 65 53 |pict.end| resumeS|
|00000b70| 74 61 63 6b 0d 0d 6f 6e | 20 73 75 73 70 65 6e 64 |tack..on| suspend|
|00000b80| 53 74 61 63 6b 0d 67 6c | 6f 62 61 6c 20 6f 6c 64 |Stack.gl|obal old|
|00000b90| 55 73 65 72 73 4c 65 76 | 65 6c 0d 73 65 74 20 74 |UsersLev|el.set t|
|00000ba0| 68 65 20 75 73 65 72 6c | 65 76 65 6c 20 74 6f 20 |he userl|evel to |
|00000bb0| 6f 6c 64 55 73 65 72 73 | 4c 65 76 65 6c 0d 72 65 |oldUsers|Level.re|
|00000bc0| 73 65 74 20 6d 65 6e 75 | 62 61 72 0d 73 68 6f 77 |set menu|bar.show|
|00000bd0| 20 63 64 20 70 69 63 74 | 0d 65 6e 64 20 73 75 73 | cd pict|.end sus|
|00000be0| 70 65 6e 64 53 74 61 63 | 6b 0d 0d 6f 6e 20 63 6c |pendStac|k..on cl|
|00000bf0| 6f 73 65 53 74 61 63 6b | 0d 67 6c 6f 62 61 6c 20 |oseStack|.global |
|00000c00| 6f 6c 64 55 73 65 72 73 | 4c 65 76 65 6c 0d 73 65 |oldUsers|Level.se|
|00000c10| 74 20 74 68 65 20 75 73 | 65 72 6c 65 76 65 6c 20 |t the us|erlevel |
|00000c20| 74 6f 20 6f 6c 64 55 73 | 65 72 73 4c 65 76 65 6c |to oldUs|ersLevel|
|00000c30| 0d 73 68 6f 77 20 63 64 | 20 70 69 63 74 0d 72 65 |.show cd| pict.re|
|00000c40| 73 65 74 20 6d 65 6e 75 | 62 61 72 0d 65 6e 64 20 |set menu|bar.end |
|00000c50| 63 6c 6f 73 65 53 74 61 | 63 6b 0d 0d 6f 6e 20 72 |closeSta|ck..on r|
|00000c60| 65 73 6f 75 72 63 65 4c | 69 73 74 0d 73 65 74 20 |esourceL|ist.set |
|00000c70| 63 75 72 73 6f 72 20 74 | 6f 20 77 61 74 63 68 0d |cursor t|o watch.|
|00000c80| 6c 69 73 74 52 65 73 6f | 75 72 63 65 73 0d 67 6c |listReso|urces.gl|
|00000c90| 6f 62 61 6c 20 61 6c 6c | 52 65 73 0d 70 75 74 20 |obal all|Res.put |
|00000ca0| 22 53 65 6c 65 63 74 20 | 52 65 73 6f 75 72 63 65 |"Select |Resource|
|00000cb0| 28 73 29 2e 2e 2e 22 20 | 69 6e 74 6f 20 74 65 78 |(s)..." |into tex|
|00000cc0| 74 50 72 6f 6d 70 74 0d | 70 75 74 20 22 74 72 75 |tPrompt.|put "tru|
|00000cd0| 65 22 20 69 6e 74 6f 20 | 6d 75 6c 74 69 53 65 6c |e" into |multiSel|
|00000ce0| 65 63 74 0d 70 75 74 20 | 22 66 61 6c 73 65 22 20 |ect.put |"false" |
|00000cf0| 69 6e 74 6f 20 74 79 70 | 69 6e 67 53 65 6c 65 63 |into typ|ingSelec|
|00000d00| 74 0d 70 75 74 20 22 44 | 69 73 70 6c 61 79 22 20 |t.put "D|isplay" |
|00000d10| 69 6e 74 6f 20 62 74 6e | 31 0d 70 75 74 20 22 45 |into btn|1.put "E|
|00000d20| 72 61 73 65 22 20 69 6e | 74 6f 20 62 74 6e 32 0d |rase" in|to btn2.|
|00000d30| 70 75 74 20 30 20 69 6e | 74 6f 20 68 69 6c 69 74 |put 0 in|to hilit|
|00000d40| 65 64 4c 69 6e 65 0d 70 | 75 74 20 61 6c 6c 52 65 |edLine.p|ut allRe|
|00000d50| 73 20 69 6e 74 6f 20 6c | 69 73 74 49 74 65 6d 73 |s into l|istItems|
|00000d60| 0d 73 6f 72 74 20 6c 69 | 73 74 49 74 65 6d 73 0d |.sort li|stItems.|
|00000d70| 67 65 74 20 73 68 6f 77 | 4c 69 73 74 28 6c 69 73 |get show|List(lis|
|00000d80| 74 49 74 65 6d 73 2c 74 | 65 78 74 50 72 6f 6d 70 |tItems,t|extPromp|
|00000d90| 74 2c 74 72 75 65 2c 74 | 72 75 65 2c 22 43 61 6e |t,true,t|rue,"Can|
|00000da0| 63 65 6c 5e 2c 44 69 73 | 70 6c 61 79 2c 52 65 4e |cel^,Dis|play,ReN|
|00000db0| 61 6d 65 2c 45 72 61 73 | 65 22 2c 30 29 0d 69 66 |ame,Eras|e",0).if|
|00000dc0| 20 6c 69 6e 65 20 32 20 | 6f 66 20 69 74 20 69 73 | line 2 |of it is|
|00000dd0| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 65 78 69 74 | empty t|hen exit|
|00000de0| 20 74 6f 20 48 79 70 65 | 72 43 61 72 64 0d 70 75 | to Hype|rCard.pu|
|00000df0| 74 20 6c 69 6e 65 20 31 | 20 6f 66 20 69 74 20 69 |t line 1| of it i|
|00000e00| 6e 74 6f 20 62 75 74 74 | 6f 6e 53 65 6c 65 63 74 |nto butt|onSelect|
|00000e10| 65 64 0d 69 66 20 62 75 | 74 74 6f 6e 53 65 6c 65 |ed.if bu|ttonSele|
|00000e20| 63 74 65 64 20 3d 20 22 | 43 61 6e 63 65 6c 22 20 |cted = "|Cancel" |
|00000e30| 74 68 65 6e 20 65 78 69 | 74 20 74 6f 20 48 79 70 |then exi|t to Hyp|
|00000e40| 65 72 43 61 72 64 0d 70 | 75 74 20 6c 69 6e 65 20 |erCard.p|ut line |
|00000e50| 32 20 6f 66 20 69 74 20 | 69 6e 74 6f 20 6c 69 6e |2 of it |into lin|
|00000e60| 65 53 65 6c 65 63 74 65 | 64 0d 70 75 74 20 65 6d |eSelecte|d.put em|
|00000e70| 70 74 79 20 69 6e 74 6f | 20 72 65 73 6f 75 72 63 |pty into| resourc|
|00000e80| 65 73 53 65 6c 65 63 74 | 65 64 0d 72 65 70 65 61 |esSelect|ed.repea|
|00000e90| 74 20 77 69 74 68 20 63 | 6f 75 6e 74 65 72 20 3d |t with c|ounter =|
|00000ea0| 20 31 20 74 6f 20 74 68 | 65 20 6e 75 6d 62 65 72 | 1 to th|e number|
|00000eb0| 20 6f 66 20 69 74 65 6d | 73 20 69 6e 20 6c 69 6e | of item|s in lin|
|00000ec0| 65 53 65 6c 65 63 74 65 | 64 0d 67 65 74 20 69 74 |eSelecte|d.get it|
|00000ed0| 65 6d 20 63 6f 75 6e 74 | 65 72 20 6f 66 20 6c 69 |em count|er of li|
|00000ee0| 6e 65 53 65 6c 65 63 74 | 65 64 0d 70 75 74 20 6c |neSelect|ed.put l|
|00000ef0| 69 6e 65 20 69 74 20 6f | 66 20 6c 69 73 74 49 74 |ine it o|f listIt|
|00000f00| 65 6d 73 26 52 45 54 55 | 52 4e 20 61 66 74 65 72 |ems&RETU|RN after|
|00000f10| 20 72 65 73 6f 75 72 63 | 65 73 53 65 6c 65 63 74 | resourc|esSelect|
|00000f20| 65 64 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 2d 2d |ed.end r|epeat.--|
|00000f30| 20 56 61 6c 75 65 20 72 | 65 74 75 72 6e 65 64 3a | Value r|eturned:|
|00000f40| 0d 2d 2d 20 53 68 6f 77 | 4c 69 73 74 20 72 65 74 |.-- Show|List ret|
|00000f50| 75 72 6e 73 20 61 20 32 | 20 6c 69 6e 65 20 72 65 |urns a 2| line re|
|00000f60| 73 75 6c 74 2c 20 6c 69 | 6e 65 20 31 20 63 6f 6e |sult, li|ne 1 con|
|00000f70| 74 61 69 6e 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |tains th|e name o|
|00000f80| 66 20 74 68 65 20 62 75 | 74 74 6f 6e 20 63 6c 69 |f the bu|tton cli|
|00000f90| 63 6b 65 64 0d 2d 2d 20 | 61 6e 64 20 6c 69 6e 65 |cked.-- |and line|
|00000fa0| 20 32 20 63 6f 6e 74 61 | 69 6e 73 20 61 20 63 6f | 2 conta|ins a co|
|00000fb0| 6d 6d 61 2d 64 65 6c 69 | 6d 69 74 65 64 20 6c 69 |mma-deli|mited li|
|00000fc0| 73 74 20 6f 66 20 74 68 | 65 20 6c 69 6e 65 20 6e |st of th|e line n|
|00000fd0| 75 6d 62 65 72 73 20 66 | 72 6f 6d 20 74 68 65 20 |umbers f|rom the |
|00000fe0| 6c 69 73 74 49 74 65 6d | 73 0d 2d 2d 20 74 68 61 |listItem|s.-- tha|
|00000ff0| 74 20 77 65 72 65 20 73 | 65 6c 65 63 74 65 64 20 |t were s|elected |
|00001000| 62 79 20 74 68 65 20 75 | 73 65 72 2e 0d 69 66 20 |by the u|ser..if |
|00001010| 62 75 74 74 6f 6e 53 65 | 6c 65 63 74 65 64 20 3d |buttonSe|lected =|
|00001020| 20 22 43 61 6e 63 65 6c | 22 20 74 68 65 6e 20 65 | "Cancel|" then e|
|00001030| 78 69 74 20 74 6f 20 48 | 79 70 65 72 43 61 72 64 |xit to H|yperCard|
|00001040| 0d 69 66 20 62 75 74 74 | 6f 6e 53 65 6c 65 63 74 |.if butt|onSelect|
|00001050| 65 64 20 3d 20 22 45 72 | 61 73 65 22 20 74 68 65 |ed = "Er|ase" the|
|00001060| 6e 20 65 72 61 73 65 52 | 65 73 6f 75 72 63 65 73 |n eraseR|esources|
|00001070| 20 72 65 73 6f 75 72 63 | 65 73 53 65 6c 65 63 74 | resourc|esSelect|
|00001080| 65 64 0d 69 66 20 62 75 | 74 74 6f 6e 53 65 6c 65 |ed.if bu|ttonSele|
|00001090| 63 74 65 64 20 3d 20 22 | 44 69 73 70 6c 61 79 22 |cted = "|Display"|
|000010a0| 20 74 68 65 6e 20 64 69 | 73 70 6c 61 79 52 65 73 | then di|splayRes|
|000010b0| 6f 75 72 63 65 73 20 72 | 65 73 6f 75 72 63 65 73 |ources r|esources|
|000010c0| 53 65 6c 65 63 74 65 64 | 0d 69 66 20 62 75 74 74 |Selected|.if butt|
|000010d0| 6f 6e 53 65 6c 65 63 74 | 65 64 20 3d 20 22 52 65 |onSelect|ed = "Re|
|000010e0| 4e 61 6d 65 22 20 74 68 | 65 6e 20 72 65 6e 61 6d |Name" th|en renam|
|000010f0| 65 52 65 73 6f 75 72 63 | 65 73 20 72 65 73 6f 75 |eResourc|es resou|
|00001100| 72 63 65 73 53 65 6c 65 | 63 74 65 64 0d 65 6e 64 |rcesSele|cted.end|
|00001110| 20 72 65 73 6f 75 72 63 | 65 4c 69 73 74 0d 0d 6f | resourc|eList..o|
|00001120| 6e 20 6d 61 6b 65 58 48 | 6f 6d 65 4d 65 6e 75 0d |n makeXH|omeMenu.|
|00001130| 69 66 20 22 4f 62 6a 65 | 63 74 73 22 20 69 73 20 |if "Obje|cts" is |
|00001140| 69 6e 20 74 68 65 20 6d | 65 6e 75 73 20 74 68 65 |in the m|enus the|
|00001150| 6e 20 64 65 6c 65 74 65 | 20 6d 65 6e 75 20 22 4f |n delete| menu "O|
|00001160| 62 6a 65 63 74 73 22 0d | 67 65 74 20 6d 65 6e 75 |bjects".|get menu|
|00001170| 20 22 45 64 69 74 22 0d | 69 66 20 22 42 61 63 6b | "Edit".|if "Back|
|00001180| 67 72 6f 75 6e 64 22 20 | 69 73 20 69 6e 20 69 74 |ground" |is in it|
|00001190| 20 74 68 65 6e 20 64 65 | 6c 65 74 65 20 6d 65 6e | then de|lete men|
|000011a0| 75 49 74 65 6d 20 22 42 | 61 63 6b 67 72 6f 75 6e |uItem "B|ackgroun|
|000011b0| 64 22 20 6f 66 20 6d 65 | 6e 75 20 22 45 64 69 74 |d" of me|nu "Edit|
|000011c0| 22 0d 69 66 20 22 49 63 | 6f 6e 2e 2e 2e 22 20 69 |".if "Ic|on..." i|
|000011d0| 73 20 69 6e 20 69 74 20 | 74 68 65 6e 20 64 65 6c |s in it |then del|
|000011e0| 65 74 65 20 6d 65 6e 75 | 49 74 65 6d 20 22 49 63 |ete menu|Item "Ic|
|000011f0| 6f 6e 2e 2e 2e 22 20 6f | 66 20 6d 65 6e 75 20 22 |on..." o|f menu "|
|00001200| 45 64 69 74 22 0d 69 66 | 20 58 48 6f 6d 65 20 69 |Edit".if| XHome i|
|00001210| 73 20 6e 6f 74 20 69 6e | 20 74 68 65 20 6d 65 6e |s not in| the men|
|00001220| 75 73 20 74 68 65 6e 0d | 63 72 65 61 74 65 20 6d |us then.|create m|
|00001230| 65 6e 75 20 22 58 48 6f | 6d 65 22 0d 70 75 74 20 |enu "XHo|me".put |
|00001240| 22 52 65 73 6f 75 72 63 | 65 20 4c 69 73 74 22 20 |"Resourc|e List" |
|00001250| 61 66 74 65 72 20 6d 65 | 6e 75 20 58 48 6f 6d 65 |after me|nu XHome|
|00001260| 20 77 69 74 68 20 6d 65 | 6e 75 4d 73 67 20 72 65 | with me|nuMsg re|
|00001270| 73 6f 75 72 63 65 4c 69 | 73 74 0d 70 75 74 20 22 |sourceLi|st.put "|
|00001280| 57 69 6e 64 6f 77 20 53 | 74 79 6c 65 22 20 61 66 |Window S|tyle" af|
|00001290| 74 65 72 20 6d 65 6e 75 | 20 58 48 6f 6d 65 20 77 |ter menu| XHome w|
|000012a0| 69 74 68 20 6d 65 6e 75 | 4d 73 67 20 77 69 6e 64 |ith menu|Msg wind|
|000012b0| 6f 77 53 74 79 6c 65 0d | 70 75 74 20 22 58 54 6f |owStyle.|put "XTo|
|000012c0| 6f 6c 73 2e 2e 2e 22 20 | 61 66 74 65 72 20 6d 65 |ols..." |after me|
|000012d0| 6e 75 20 58 48 6f 6d 65 | 20 77 69 74 68 20 6d 65 |nu XHome| with me|
|000012e0| 6e 75 4d 73 67 20 58 54 | 6f 6f 6c 73 0d 70 75 74 |nuMsg XT|ools.put|
|000012f0| 20 22 2d 22 20 61 66 74 | 65 72 20 74 68 65 20 6c | "-" aft|er the l|
|00001300| 61 73 74 20 6d 65 6e 75 | 69 74 65 6d 20 6f 66 20 |ast menu|item of |
|00001310| 6d 65 6e 75 20 58 48 6f | 6d 65 0d 70 75 74 20 22 |menu XHo|me.put "|
|00001320| 43 72 65 61 74 65 20 52 | 65 73 6f 75 72 63 65 22 |Create R|esource"|
|00001330| 20 61 66 74 65 72 20 6d | 65 6e 75 20 58 48 6f 6d | after m|enu XHom|
|00001340| 65 20 77 69 74 68 20 6d | 65 6e 75 4d 73 67 20 63 |e with m|enuMsg c|
|00001350| 72 65 61 74 65 52 65 73 | 6f 75 72 63 65 73 0d 70 |reateRes|ources.p|
|00001360| 75 74 20 22 43 72 65 61 | 74 65 20 58 52 65 73 20 |ut "Crea|te XRes |
|00001370| 53 74 61 63 6b 22 20 61 | 66 74 65 72 20 6d 65 6e |Stack" a|fter men|
|00001380| 75 20 58 48 6f 6d 65 20 | 77 69 74 68 20 6d 65 6e |u XHome |with men|
|00001390| 75 4d 73 67 20 63 72 65 | 61 74 65 58 52 65 73 53 |uMsg cre|ateXResS|
|000013a0| 74 61 63 6b 0d 70 75 74 | 20 22 2d 22 20 61 66 74 |tack.put| "-" aft|
|000013b0| 65 72 20 74 68 65 20 6c | 61 73 74 20 6d 65 6e 75 |er the l|ast menu|
|000013c0| 69 74 65 6d 20 6f 66 20 | 6d 65 6e 75 20 58 48 6f |item of |menu XHo|
|000013d0| 6d 65 0d 70 75 74 20 22 | 4c 6f 61 64 20 52 65 73 |me.put "|Load Res|
|000013e0| 6f 75 72 63 65 22 20 61 | 66 74 65 72 20 6d 65 6e |ource" a|fter men|
|000013f0| 75 20 58 48 6f 6d 65 20 | 77 69 74 68 20 6d 65 6e |u XHome |with men|
|00001400| 75 4d 73 67 20 6c 6f 61 | 64 52 65 73 6f 75 72 63 |uMsg loa|dResourc|
|00001410| 65 73 0d 70 75 74 20 22 | 2d 22 20 61 66 74 65 72 |es.put "|-" after|
|00001420| 20 74 68 65 20 6c 61 73 | 74 20 6d 65 6e 75 69 74 | the las|t menuit|
|00001430| 65 6d 20 6f 66 20 6d 65 | 6e 75 20 58 48 6f 6d 65 |em of me|nu XHome|
|00001440| 0d 70 75 74 20 22 41 62 | 6f 75 74 20 58 48 6f 6d |.put "Ab|out XHom|
|00001450| 65 2e 2e 2e 22 20 61 66 | 74 65 72 20 6d 65 6e 75 |e..." af|ter menu|
|00001460| 20 58 48 6f 6d 65 20 77 | 69 74 68 20 6d 65 6e 75 | XHome w|ith menu|
|00001470| 4d 73 67 20 73 70 6c 61 | 73 68 53 63 72 65 65 6e |Msg spla|shScreen|
|00001480| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 6d 61 6b 65 |.end if.|end make|
|00001490| 58 48 6f 6d 65 4d 65 6e | 75 0d 0d 4f 4e 20 58 48 |XHomeMen|u..ON XH|
|000014a0| 6f 6d 65 52 65 73 6f 75 | 72 63 65 73 20 69 74 0d |omeResou|rces it.|
|000014b0| 53 45 54 20 43 55 52 53 | 4f 52 20 54 4f 20 57 41 |SET CURS|OR TO WA|
|000014c0| 54 43 48 0d 67 6c 6f 62 | 61 6c 20 61 6c 6c 52 65 |TCH.glob|al allRe|
|000014d0| 73 0d 70 75 74 20 22 58 | 46 43 4e 2c 46 75 6c 6c |s.put "X|FCN,Full|
|000014e0| 52 65 73 4c 69 73 74 2c | 33 33 38 35 22 26 52 45 |ResList,|3385"&RE|
|000014f0| 54 55 52 4e 26 c2 0d 22 | 58 43 4d 44 2c 43 6c 69 |TURN&.."|XCMD,Cli|
|00001500| 70 54 6f 50 49 43 54 2c | 36 32 33 22 26 52 45 54 |pToPICT,|623"&RET|
|00001510| 55 52 4e 26 c2 0d 22 58 | 43 4d 44 2c 4b 69 6c 6c |URN&.."X|CMD,Kill|
|00001520| 52 65 73 2c 35 35 36 36 | 22 26 52 45 54 55 52 4e |Res,5566|"&RETURN|
|00001530| 26 c2 0d 22 58 43 4d 44 | 2c 53 6f 75 6e 64 52 65 |&.."XCMD|,SoundRe|
|00001540| 63 6f 72 64 2c 36 39 34 | 35 22 26 52 45 54 55 52 |cord,694|5"&RETUR|
|00001550| 4e 26 c2 0d 22 58 46 43 | 4e 2c 52 65 6e 61 6d 65 |N&.."XFC|N,Rename|
|00001560| 52 65 73 2c 33 33 38 35 | 22 26 52 45 54 55 52 4e |Res,3385|"&RETURN|
|00001570| 26 c2 0d 22 58 46 43 4e | 2c 53 68 6f 77 4c 69 73 |&.."XFCN|,ShowLis|
|00001580| 74 2c 35 31 32 30 22 26 | 52 45 54 55 52 4e 26 c2 |t,5120"&|RETURN&.|
|00001590| 0d 22 50 49 43 54 2c 57 | 69 6e 64 6f 77 73 2c 31 |."PICT,W|indows,1|
|000015a0| 35 33 35 39 22 26 52 45 | 54 55 52 4e 26 c2 0d 22 |5359"&RE|TURN&.."|
|000015b0| 58 43 4d 44 2c 43 6f 70 | 79 52 65 73 2c 31 30 37 |XCMD,Cop|yRes,107|
|000015c0| 37 22 26 52 45 54 55 52 | 4e 20 69 6e 74 6f 20 74 |7"&RETUR|N into t|
|000015d0| 68 65 58 52 65 73 6f 75 | 72 63 65 73 0d 0d 70 75 |heXResou|rces..pu|
|000015e0| 74 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |t the nu|mber of |
|000015f0| 6c 69 6e 65 73 20 69 6e | 20 69 74 20 69 6e 74 6f |lines in| it into|
|00001600| 20 4e 75 6d 4f 66 52 65 | 73 0d 70 75 74 20 69 74 | NumOfRe|s.put it|
|00001610| 20 69 6e 74 6f 20 61 6c | 6c 52 65 73 0d 72 65 70 | into al|lRes.rep|
|00001620| 65 61 74 20 77 69 74 68 | 20 63 6f 75 6e 74 65 72 |eat with| counter|
|00001630| 20 3d 20 4e 75 6d 4f 66 | 52 65 73 20 64 6f 77 6e | = NumOf|Res down|
|00001640| 20 74 6f 20 31 0d 72 65 | 70 65 61 74 20 77 69 74 | to 1.re|peat wit|
|00001650| 68 20 66 6f 75 6e 74 65 | 72 20 3d 20 31 20 74 6f |h founte|r = 1 to|
|00001660| 20 28 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | (the nu|mber of |
|00001670| 6c 69 6e 65 73 20 69 6e | 20 74 68 65 58 52 65 73 |lines in| theXRes|
|00001680| 6f 75 72 63 65 73 29 0d | 69 66 20 69 74 65 6d 20 |ources).|if item |
|00001690| 32 20 6f 66 20 6c 69 6e | 65 20 63 6f 75 6e 74 65 |2 of lin|e counte|
|000016a0| 72 20 6f 66 20 61 6c 6c | 52 65 73 20 3d 20 69 74 |r of all|Res = it|
|000016b0| 65 6d 20 32 20 6f 66 20 | 6c 69 6e 65 20 66 6f 75 |em 2 of |line fou|
|000016c0| 6e 74 65 72 20 6f 66 20 | 74 68 65 58 52 65 73 6f |nter of |theXReso|
|000016d0| 75 72 63 65 73 20 74 68 | 65 6e 0d 64 65 6c 65 74 |urces th|en.delet|
|000016e0| 65 20 6c 69 6e 65 20 63 | 6f 75 6e 74 65 72 20 6f |e line c|ounter o|
|000016f0| 66 20 61 6c 6c 52 65 73 | 0d 65 6e 64 20 69 66 0d |f allRes|.end if.|
|00001700| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 72 |end repe|at.end r|
|00001710| 65 70 65 61 74 0d 65 6e | 64 20 58 48 6f 6d 65 52 |epeat.en|d XHomeR|
|00001720| 65 73 6f 75 72 63 65 73 | 0d 0d 6f 6e 20 6c 6f 61 |esources|..on loa|
|00001730| 64 52 65 73 6f 75 72 63 | 65 73 0d 61 6e 73 77 65 |dResourc|es.answe|
|00001740| 72 20 66 69 6c 65 20 22 | 46 69 6e 64 20 61 20 53 |r file "|Find a S|
|00001750| 74 61 63 6b 20 77 69 74 | 68 20 52 65 73 6f 75 72 |tack wit|h Resour|
|00001760| 63 65 73 20 74 6f 20 4c | 61 6f 64 3f 22 20 6f 66 |ces to L|aod?" of|
|00001770| 20 74 79 70 65 20 53 54 | 41 4b 0d 69 66 20 69 74 | type ST|AK.if it|
|00001780| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 20 65 | is empt|y then e|
|00001790| 78 69 74 20 74 6f 20 48 | 79 70 65 72 43 61 72 64 |xit to H|yperCard|
|000017a0| 0d 67 6c 6f 62 61 6c 20 | 6f 75 74 73 69 64 65 53 |.global |outsideS|
|000017b0| 74 61 63 6b 0d 70 75 74 | 20 69 74 20 69 6e 74 6f |tack.put| it into|
|000017c0| 20 6f 75 74 73 69 64 65 | 53 74 61 63 6b 0d 73 65 | outside|Stack.se|
|000017d0| 74 20 63 75 72 73 6f 72 | 20 74 6f 20 77 61 74 63 |t cursor| to watc|
|000017e0| 68 0d 6c 69 73 74 52 65 | 73 6f 75 72 63 65 73 0d |h.listRe|sources.|
|000017f0| 67 6c 6f 62 61 6c 20 61 | 6c 6c 52 65 73 0d 67 6c |global a|llRes.gl|
|00001800| 6f 62 61 6c 20 6f 75 74 | 73 69 64 65 53 74 61 63 |obal out|sideStac|
|00001810| 6b 0d 70 75 74 20 22 53 | 65 6c 65 63 74 20 4e 61 |k.put "S|elect Na|
|00001820| 6d 65 73 22 20 69 6e 74 | 6f 20 74 65 78 74 50 72 |mes" int|o textPr|
|00001830| 6f 6d 70 74 0d 70 75 74 | 20 22 74 72 75 65 22 20 |ompt.put| "true" |
|00001840| 69 6e 74 6f 20 6d 75 6c | 74 69 53 65 6c 65 63 74 |into mul|tiSelect|
|00001850| 0d 70 75 74 20 22 66 61 | 6c 73 65 22 20 69 6e 74 |.put "fa|lse" int|
|00001860| 6f 20 74 79 70 69 6e 67 | 53 65 6c 65 63 74 0d 70 |o typing|Select.p|
|00001870| 75 74 20 30 20 69 6e 74 | 6f 20 68 69 6c 69 74 65 |ut 0 int|o hilite|
|00001880| 64 4c 69 6e 65 0d 70 75 | 74 20 61 6c 6c 52 65 73 |dLine.pu|t allRes|
|00001890| 20 69 6e 74 6f 20 6c 69 | 73 74 49 74 65 6d 73 0d | into li|stItems.|
|000018a0| 73 6f 72 74 20 6c 69 73 | 74 49 74 65 6d 73 0d 67 |sort lis|tItems.g|
|000018b0| 65 74 20 73 68 6f 77 4c | 69 73 74 28 6c 69 73 74 |et showL|ist(list|
|000018c0| 49 74 65 6d 73 2c 74 65 | 78 74 50 72 6f 6d 70 74 |Items,te|xtPrompt|
|000018d0| 2c 74 72 75 65 2c 74 72 | 75 65 2c 22 4c 6f 61 64 |,true,tr|ue,"Load|
|000018e0| 5e 2c 43 61 6e 63 65 6c | 22 2c 30 29 0d 69 66 20 |^,Cancel|",0).if |
|000018f0| 6c 69 6e 65 20 32 20 6f | 66 20 69 74 20 69 73 20 |line 2 o|f it is |
|00001900| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00001910| 74 6f 20 48 79 70 65 72 | 43 61 72 64 0d 70 75 74 |to Hyper|Card.put|
|00001920| 20 6c 69 6e 65 20 31 20 | 6f 66 20 69 74 20 69 6e | line 1 |of it in|
|00001930| 74 6f 20 62 75 74 74 6f | 6e 53 65 6c 65 63 74 65 |to butto|nSelecte|
|00001940| 64 0d 69 66 20 62 75 74 | 74 6f 6e 53 65 6c 65 63 |d.if but|tonSelec|
|00001950| 74 65 64 20 3d 20 22 43 | 61 6e 63 65 6c 22 20 6f |ted = "C|ancel" o|
|00001960| 72 20 74 68 65 20 72 65 | 73 75 6c 74 20 ad 20 65 |r the re|sult . e|
|00001970| 6d 70 74 79 20 74 68 65 | 6e 0d 67 6c 6f 62 61 6c |mpty the|n.global|
|00001980| 20 4f 75 74 73 69 64 65 | 53 74 61 63 6b 0d 70 75 | Outside|Stack.pu|
|00001990| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 4f 75 74 |t empty |into Out|
|000019a0| 73 69 64 65 53 74 61 63 | 6b 0d 65 78 69 74 20 74 |sideStac|k.exit t|
|000019b0| 6f 20 48 79 70 65 72 43 | 61 72 64 0d 65 6e 64 20 |o HyperC|ard.end |
|000019c0| 69 66 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f |if.set c|ursor to|
|000019d0| 20 77 61 74 63 68 0d 70 | 75 74 20 6c 69 6e 65 20 | watch.p|ut line |
|000019e0| 32 20 6f 66 20 69 74 20 | 69 6e 74 6f 20 6c 69 6e |2 of it |into lin|
|000019f0| 65 53 65 6c 65 63 74 65 | 64 0d 70 75 74 20 65 6d |eSelecte|d.put em|
|00001a00| 70 74 79 20 69 6e 74 6f | 20 72 65 73 6f 75 72 63 |pty into| resourc|
|00001a10| 65 73 53 65 6c 65 63 74 | 65 64 0d 72 65 70 65 61 |esSelect|ed.repea|
|00001a20| 74 20 77 69 74 68 20 63 | 6f 75 6e 74 65 72 20 3d |t with c|ounter =|
|00001a30| 20 31 20 74 6f 20 74 68 | 65 20 6e 75 6d 62 65 72 | 1 to th|e number|
|00001a40| 20 6f 66 20 69 74 65 6d | 73 20 69 6e 20 6c 69 6e | of item|s in lin|
|00001a50| 65 53 65 6c 65 63 74 65 | 64 0d 70 75 74 20 69 74 |eSelecte|d.put it|
|00001a60| 65 6d 20 63 6f 75 6e 74 | 65 72 20 6f 66 20 6c 69 |em count|er of li|
|00001a70| 6e 65 53 65 6c 65 63 74 | 65 64 20 69 6e 74 6f 20 |neSelect|ed into |
|00001a80| 72 65 73 6f 75 72 63 65 | 73 4c 69 6e 65 0d 70 75 |resource|sLine.pu|
|00001a90| 74 20 6c 69 6e 65 20 72 | 65 73 6f 75 72 63 65 73 |t line r|esources|
|00001aa0| 4c 69 6e 65 20 6f 66 20 | 6c 69 73 74 49 74 65 6d |Line of |listItem|
|00001ab0| 73 26 52 45 54 55 52 4e | 20 61 66 74 65 72 20 72 |s&RETURN| after r|
|00001ac0| 65 73 6f 75 72 63 65 73 | 53 65 6c 65 63 74 65 64 |esources|Selected|
|00001ad0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 2d 2d 0d 70 |.end rep|eat.--.p|
|00001ae0| 75 74 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ut the n|umber of|
|00001af0| 20 6c 69 6e 65 73 20 69 | 6e 20 72 65 73 6f 75 72 | lines i|n resour|
|00001b00| 63 65 73 53 65 6c 65 63 | 74 65 64 20 69 6e 74 6f |cesSelec|ted into|
|00001b10| 20 72 65 73 4e 75 6d 62 | 65 72 73 0d 72 65 70 65 | resNumb|ers.repe|
|00001b20| 61 74 20 77 69 74 68 20 | 6c 69 6e 65 43 68 65 63 |at with |lineChec|
|00001b30| 6b 69 6e 67 20 3d 20 72 | 65 73 4e 75 6d 62 65 72 |king = r|esNumber|
|00001b40| 73 20 64 6f 77 6e 20 74 | 6f 20 31 0d 70 75 74 20 |s down t|o 1.put |
|00001b50| 69 74 65 6d 20 32 20 6f | 66 20 6c 69 6e 65 20 6c |item 2 o|f line l|
|00001b60| 69 6e 65 43 68 65 63 6b | 69 6e 67 20 6f 66 20 72 |ineCheck|ing of r|
|00001b70| 65 73 6f 75 72 63 65 73 | 53 65 6c 65 63 74 65 64 |esources|Selected|
|00001b80| 20 69 6e 74 6f 20 52 65 | 73 6f 75 72 63 65 73 4e | into Re|sourcesN|
|00001b90| 61 6d 65 0d 69 66 20 74 | 68 65 20 6e 75 6d 62 65 |ame.if t|he numbe|
|00001ba0| 72 20 6f 66 20 77 6f 72 | 64 73 20 69 6e 20 52 65 |r of wor|ds in Re|
|00001bb0| 73 6f 75 72 63 65 73 4e | 61 6d 65 20 3e 20 31 20 |sourcesN|ame > 1 |
|00001bc0| 74 68 65 6e 0d 70 75 74 | 20 52 45 54 55 52 4e 26 |then.put| RETURN&|
|00001bd0| 22 41 20 6e 61 6d 65 20 | 6d 75 73 74 20 62 65 20 |"A name |must be |
|00001be0| 31 20 77 6f 72 64 20 6f | 6e 6c 79 21 22 20 61 66 |1 word o|nly!" af|
|00001bf0| 74 65 72 20 73 74 61 74 | 65 6d 65 6e 74 0d 65 6e |ter stat|ement.en|
|00001c00| 64 20 69 66 0d 2d 2d 20 | 63 68 65 63 6b 73 20 66 |d if.-- |checks f|
|00001c10| 6f 72 20 72 65 73 74 72 | 69 63 74 65 64 20 57 4f |or restr|icted WO|
|00001c20| 52 44 53 0d 70 75 74 20 | 66 6c 64 20 69 64 20 32 |RDS.put |fld id 2|
|00001c30| 39 20 69 6e 74 6f 20 72 | 65 73 74 72 69 63 74 65 |9 into r|estricte|
|00001c40| 64 57 6f 72 64 73 20 2d | 2d 20 66 6c 64 20 22 57 |dWords -|- fld "W|
|00001c50| 69 6e 64 6f 77 73 22 0d | 70 75 74 20 28 74 68 65 |indows".|put (the|
|00001c60| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 74 | short n|ame of t|
|00001c70| 68 69 73 20 73 74 61 63 | 6b 29 26 52 45 54 55 52 |his stac|k)&RETUR|
|00001c80| 4e 20 61 66 74 65 72 20 | 74 68 65 20 6c 61 73 74 |N after |the last|
|00001c90| 20 6c 69 6e 65 20 6f 66 | 20 72 65 73 74 72 69 63 | line of| restric|
|00001ca0| 74 65 64 57 6f 72 64 73 | 0d 64 65 6c 65 74 65 20 |tedWords|.delete |
|00001cb0| 6c 69 6e 65 20 39 20 74 | 6f 20 31 30 20 6f 66 20 |line 9 t|o 10 of |
|00001cc0| 72 65 73 74 72 69 63 74 | 65 64 57 6f 72 64 73 20 |restrict|edWords |
|00001cd0| 2d 2d 20 28 65 78 74 72 | 61 20 72 65 74 75 72 6e |-- (extr|a return|
|00001ce0| 29 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 63 6f |).repeat| with co|
|00001cf0| 75 6e 74 65 72 20 3d 20 | 31 20 74 6f 20 39 0d 69 |unter = |1 to 9.i|
|00001d00| 66 20 52 65 73 6f 75 72 | 63 65 73 4e 61 6d 65 20 |f Resour|cesName |
|00001d10| 3d 20 6c 69 6e 65 20 63 | 6f 75 6e 74 65 72 20 6f |= line c|ounter o|
|00001d20| 66 20 72 65 73 74 72 69 | 63 74 65 64 57 6f 72 64 |f restri|ctedWord|
|00001d30| 73 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 54 |s then.a|nswer "T|
|00001d40| 68 65 20 77 6f 72 64 20 | 22 26 51 55 4f 54 45 26 |he word |""E&|
|00001d50| 69 74 26 51 55 4f 54 45 | 26 26 22 69 73 20 61 20 |it"E|&&"is a |
|00001d60| 72 65 73 74 72 69 63 74 | 65 64 20 77 6f 72 64 21 |restrict|ed word!|
|00001d70| 22 26 52 45 54 55 52 4e | 26 22 50 6c 65 61 73 65 |"&RETURN|&"Please|
|00001d80| 20 63 68 6f 6f 73 65 20 | 61 6e 6f 74 68 65 72 20 | choose |another |
|00001d90| 6e 61 6d 65 2e 22 0d 67 | 6c 6f 62 61 6c 20 4f 75 |name.".g|lobal Ou|
|00001da0| 74 73 69 64 65 53 74 61 | 63 6b 0d 70 75 74 20 65 |tsideSta|ck.put e|
|00001db0| 6d 70 74 79 20 69 6e 74 | 6f 20 4f 75 74 73 69 64 |mpty int|o Outsid|
|00001dc0| 65 53 74 61 63 6b 0d 65 | 78 69 74 20 74 6f 20 48 |eStack.e|xit to H|
|00001dd0| 79 70 65 72 43 61 72 64 | 0d 65 6e 64 20 69 66 0d |yperCard|.end if.|
|00001de0| 65 6e 64 20 72 65 70 65 | 61 74 0d 70 75 74 20 65 |end repe|at.put e|
|00001df0| 6d 70 74 79 20 69 6e 74 | 6f 20 62 61 64 43 68 61 |mpty int|o badCha|
|00001e00| 72 73 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |rs.put e|mpty int|
|00001e10| 6f 20 74 65 73 74 0d 70 | 75 74 20 65 6d 70 74 79 |o test.p|ut empty|
|00001e20| 20 69 6e 74 6f 20 73 74 | 61 74 65 6d 65 6e 74 0d | into st|atement.|
|00001e30| 72 65 70 65 61 74 20 77 | 69 74 68 20 63 6f 75 6e |repeat w|ith coun|
|00001e40| 74 65 72 20 3d 20 31 20 | 74 6f 20 28 74 68 65 20 |ter = 1 |to (the |
|00001e50| 6e 75 6d 62 65 72 20 6f | 66 20 63 68 61 72 73 20 |number o|f chars |
|00001e60| 69 6e 20 52 65 73 6f 75 | 72 63 65 73 4e 61 6d 65 |in Resou|rcesName|
|00001e70| 29 0d 70 75 74 20 63 68 | 61 72 20 63 6f 75 6e 74 |).put ch|ar count|
|00001e80| 65 72 20 6f 66 20 52 65 | 73 6f 75 72 63 65 73 4e |er of Re|sourcesN|
|00001e90| 61 6d 65 20 69 6e 74 6f | 20 74 65 73 74 43 68 61 |ame into| testCha|
|00001ea0| 72 0d 70 75 74 20 63 68 | 61 72 54 6f 4e 75 6d 28 |r.put ch|arToNum(|
|00001eb0| 74 65 73 74 43 68 61 72 | 29 20 69 6e 74 6f 20 74 |testChar|) into t|
|00001ec0| 65 6d 70 43 68 61 72 0d | 69 66 20 74 65 6d 70 43 |empChar.|if tempC|
|00001ed0| 68 61 72 20 3e 3d 20 36 | 35 20 61 6e 64 20 74 65 |har >= 6|5 and te|
|00001ee0| 6d 70 43 68 61 72 20 3c | 3d 20 39 30 20 74 68 65 |mpChar <|= 90 the|
|00001ef0| 6e 20 70 75 74 20 30 20 | 69 6e 74 6f 20 74 65 73 |n put 0 |into tes|
|00001f00| 74 20 65 6c 73 65 20 61 | 64 64 20 31 20 74 6f 20 |t else a|dd 1 to |
|00001f10| 74 65 73 74 0d 69 66 20 | 74 65 6d 70 43 68 61 72 |test.if |tempChar|
|00001f20| 20 3e 3d 20 39 37 20 61 | 6e 64 20 74 65 6d 70 43 | >= 97 a|nd tempC|
|00001f30| 68 61 72 20 3c 3d 20 31 | 32 32 20 74 68 65 6e 20 |har <= 1|22 then |
|00001f40| 70 75 74 20 30 20 69 6e | 74 6f 20 74 65 73 74 20 |put 0 in|to test |
|00001f50| 65 6c 73 65 20 61 64 64 | 20 31 20 74 6f 20 74 65 |else add| 1 to te|
|00001f60| 73 74 0d 69 66 20 74 65 | 6d 70 43 68 61 72 20 3e |st.if te|mpChar >|
|00001f70| 3d 20 34 38 20 61 6e 64 | 20 74 65 6d 70 43 68 61 |= 48 and| tempCha|
|00001f80| 72 20 3c 3d 20 35 37 20 | 74 68 65 6e 20 70 75 74 |r <= 57 |then put|
|00001f90| 20 30 20 69 6e 74 6f 20 | 74 65 73 74 20 65 6c 73 | 0 into |test els|
|00001fa0| 65 20 61 64 64 20 31 20 | 74 6f 20 74 65 73 74 0d |e add 1 |to test.|
|00001fb0| 69 66 20 74 65 73 74 20 | 3e 20 32 20 74 68 65 6e |if test |> 2 then|
|00001fc0| 0d 70 75 74 20 22 20 22 | 26 51 55 4f 54 45 26 63 |.put " "|"E&c|
|00001fd0| 68 61 72 61 63 74 65 72 | 20 63 6f 75 6e 74 65 72 |haracter| counter|
|00001fe0| 20 6f 66 20 52 65 73 6f | 75 72 63 65 73 4e 61 6d | of Reso|urcesNam|
|00001ff0| 65 26 51 55 4f 54 45 26 | 22 20 22 20 61 66 74 65 |e"E&|" " afte|
|00002000| 72 20 62 61 64 43 68 61 | 72 73 0d 65 6e 64 20 69 |r badCha|rs.end i|
|00002010| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |f.end re|peat.if |
|00002020| 62 61 64 43 68 61 72 73 | 20 ad 20 65 6d 70 74 79 |badChars| . empty|
|00002030| 20 74 68 65 6e 0d 70 75 | 74 20 52 45 54 55 52 4e | then.pu|t RETURN|
|00002040| 26 22 54 68 65 73 65 20 | 61 72 65 20 62 61 64 20 |&"These |are bad |
|00002050| 63 68 61 72 61 63 74 65 | 72 73 3a 20 22 26 62 61 |characte|rs: "&ba|
|00002060| 64 43 68 61 72 73 20 61 | 66 74 65 72 20 73 74 61 |dChars a|fter sta|
|00002070| 74 65 6d 65 6e 74 0d 65 | 6e 64 20 69 66 0d 69 66 |tement.e|nd if.if|
|00002080| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|00002090| 68 61 72 73 20 69 6e 20 | 52 65 73 6f 75 72 63 65 |hars in |Resource|
|000020a0| 73 4e 61 6d 65 20 3e 20 | 31 30 20 74 68 65 6e 0d |sName > |10 then.|
|000020b0| 70 75 74 20 52 45 54 55 | 52 4e 26 22 41 20 6e 61 |put RETU|RN&"A na|
|000020c0| 6d 65 20 6d 75 73 74 20 | 62 65 20 74 65 6e 20 63 |me must |be ten c|
|000020d0| 68 61 72 61 63 74 65 72 | 73 20 6f 72 20 6c 65 73 |haracter|s or les|
|000020e0| 73 21 22 20 61 66 74 65 | 72 20 73 74 61 74 65 6d |s!" afte|r statem|
|000020f0| 65 6e 74 0d 65 6e 64 20 | 69 66 0d 69 66 20 73 74 |ent.end |if.if st|
|00002100| 61 74 65 6d 65 6e 74 20 | ad 20 65 6d 70 74 79 20 |atement |. empty |
|00002110| 74 68 65 6e 0d 70 75 74 | 20 51 55 4f 54 45 26 52 |then.put| QUOTE&R|
|00002120| 65 73 6f 75 72 63 65 73 | 4e 61 6d 65 26 51 55 4f |esources|Name&QUO|
|00002130| 54 45 26 52 45 54 55 52 | 4e 20 62 65 66 6f 72 65 |TE&RETUR|N before|
|00002140| 20 73 74 61 74 65 6d 65 | 6e 74 0d 61 6e 73 77 65 | stateme|nt.answe|
|00002150| 72 20 73 74 61 74 65 6d | 65 6e 74 0d 67 6c 6f 62 |r statem|ent.glob|
|00002160| 61 6c 20 4f 75 74 73 69 | 64 65 53 74 61 63 6b 0d |al Outsi|deStack.|
|00002170| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 4f |put empt|y into O|
|00002180| 75 74 73 69 64 65 53 74 | 61 63 6b 0d 65 78 69 74 |utsideSt|ack.exit|
|00002190| 20 74 6f 20 48 79 70 65 | 72 43 61 72 64 0d 65 6e | to Hype|rCard.en|
|000021a0| 64 20 69 66 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |d if.end| repeat.|
|000021b0| 67 6c 6f 62 61 6c 20 4f | 75 74 73 69 64 65 53 74 |global O|utsideSt|
|000021c0| 61 63 6b 0d 70 75 74 20 | 74 68 65 20 6e 75 6d 62 |ack.put |the numb|
|000021d0| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 72 |er of li|nes in r|
|000021e0| 65 73 6f 75 72 63 65 73 | 53 65 6c 65 63 74 65 64 |esources|Selected|
|000021f0| 20 69 6e 74 6f 20 4e 75 | 6d 62 65 72 4f 66 72 65 | into Nu|mberOfre|
|00002200| 73 6f 75 72 63 65 73 0d | 72 65 70 65 61 74 20 77 |sources.|repeat w|
|00002210| 69 74 68 20 63 6f 75 6e | 74 65 72 20 3d 20 31 20 |ith coun|ter = 1 |
|00002220| 74 6f 20 4e 75 6d 62 65 | 72 4f 66 72 65 73 6f 75 |to Numbe|rOfresou|
|00002230| 72 63 65 73 0d 70 75 74 | 20 6c 69 6e 65 20 20 63 |rces.put| line c|
|00002240| 6f 75 6e 74 65 72 20 6f | 66 20 72 65 73 6f 75 72 |ounter o|f resour|
|00002250| 63 65 73 53 65 6c 65 63 | 74 65 64 20 69 6e 74 6f |cesSelec|ted into|
|00002260| 20 77 68 61 74 54 6f 43 | 6f 70 79 0d 43 6f 70 79 | whatToC|opy.Copy|
|00002270| 52 65 73 20 4f 75 74 73 | 69 64 65 53 74 61 63 6b |Res Outs|ideStack|
|00002280| 2c 28 74 68 65 20 73 68 | 6f 72 74 20 4e 61 6d 65 |,(the sh|ort Name|
|00002290| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 29 2c | of this| stack),|
|000022a0| 20 28 69 74 65 6d 20 31 | 20 6f 66 20 77 68 61 74 | (item 1| of what|
|000022b0| 54 6f 43 6f 70 79 29 2c | 28 69 74 65 6d 20 32 20 |ToCopy),|(item 2 |
|000022c0| 6f 66 20 77 68 61 74 54 | 6f 43 6f 70 79 29 0d 69 |of whatT|oCopy).i|
|000022d0| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 ad 20 65 |f the re|sult . e|
|000022e0| 6d 70 74 79 20 74 68 65 | 6e 0d 70 75 74 20 74 68 |mpty the|n.put th|
|000022f0| 65 20 72 65 73 75 6c 74 | 20 69 6e 74 6f 20 74 68 |e result| into th|
|00002300| 65 52 65 73 75 6c 74 0d | 61 6e 73 77 65 72 20 74 |eResult.|answer t|
|00002310| 68 65 52 65 73 75 6c 74 | 0d 65 6e 64 20 69 66 0d |heResult|.end if.|
|00002320| 65 6e 64 20 72 65 70 65 | 61 74 0d 67 6c 6f 62 61 |end repe|at.globa|
|00002330| 6c 20 4f 75 74 73 69 64 | 65 53 74 61 63 6b 0d 70 |l Outsid|eStack.p|
|00002340| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 4f 75 |ut empty| into Ou|
|00002350| 74 73 69 64 65 53 74 61 | 63 6b 0d 62 65 65 70 0d |tsideSta|ck.beep.|
|00002360| 64 6f 4d 65 6e 75 20 22 | 43 6f 6d 70 61 63 74 20 |doMenu "|Compact |
|00002370| 53 74 61 63 6b 22 0d 2d | 2d 20 61 6e 73 77 65 72 |Stack".-|- answer|
|00002380| 20 22 53 74 61 63 6b 20 | 52 65 73 6f 75 72 63 65 | "Stack |Resource|
|00002390| 73 20 4c 6f 61 64 65 64 | 21 22 0d 65 6e 64 20 6c |s Loaded|!".end l|
|000023a0| 6f 61 64 52 65 73 6f 75 | 72 63 65 73 0d 0d 6f 6e |oadResou|rces..on|
|000023b0| 20 72 65 63 6f 72 64 53 | 6f 75 6e 64 0d 61 73 6b | recordS|ound.ask|
|000023c0| 20 22 52 65 73 6f 75 72 | 63 65 20 6e 61 6d 65 20 | "Resour|ce name |
|000023d0| 3a 22 20 77 69 74 68 20 | 22 4e 65 77 53 6f 75 6e |:" with |"NewSoun|
|000023e0| 64 22 0d 69 66 20 69 74 | 20 69 73 20 65 6d 70 74 |d".if it| is empt|
|000023f0| 79 20 74 68 65 6e 20 65 | 78 69 74 20 74 6f 20 48 |y then e|xit to H|
|00002400| 79 70 65 72 43 61 72 64 | 0d 70 75 74 20 69 74 20 |yperCard|.put it |
|00002410| 69 6e 74 6f 20 4e 61 6d | 65 0d 73 65 74 20 63 75 |into Nam|e.set cu|
|00002420| 72 73 6f 72 20 74 6f 20 | 77 61 74 63 68 0d 2d 2d |rsor to |watch.--|
|00002430| 20 76 77 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e | vw.put |empty in|
|00002440| 74 6f 20 73 74 61 74 65 | 6d 65 6e 74 0d 69 66 20 |to state|ment.if |
|00002450| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 77 6f |the numb|er of wo|
|00002460| 72 64 73 20 69 6e 20 4e | 61 6d 65 20 3e 20 31 20 |rds in N|ame > 1 |
|00002470| 74 68 65 6e 0d 70 75 74 | 20 52 45 54 55 52 4e 26 |then.put| RETURN&|
|00002480| 22 41 20 6e 61 6d 65 20 | 6d 75 73 74 20 62 65 20 |"A name |must be |
|00002490| 31 20 77 6f 72 64 20 6f | 6e 6c 79 21 22 20 61 66 |1 word o|nly!" af|
|000024a0| 74 65 72 20 73 74 61 74 | 65 6d 65 6e 74 0d 65 6e |ter stat|ement.en|
|000024b0| 64 20 69 66 0d 2d 2d 20 | 63 68 65 63 6b 73 20 66 |d if.-- |checks f|
|000024c0| 6f 72 20 72 65 73 74 72 | 69 63 74 65 64 20 57 4f |or restr|icted WO|
|000024d0| 52 44 53 0d 70 75 74 20 | 66 6c 64 20 69 64 20 32 |RDS.put |fld id 2|
|000024e0| 39 20 69 6e 74 6f 20 72 | 65 73 74 72 69 63 74 65 |9 into r|estricte|
|000024f0| 64 57 6f 72 64 73 20 2d | 2d 20 66 6c 64 20 22 57 |dWords -|- fld "W|
|00002500| 69 6e 64 6f 77 73 22 0d | 70 75 74 20 28 74 68 65 |indows".|put (the|
|00002510| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 74 | short n|ame of t|
|00002520| 68 69 73 20 73 74 61 63 | 6b 29 26 52 45 54 55 52 |his stac|k)&RETUR|
|00002530| 4e 20 61 66 74 65 72 20 | 74 68 65 20 6c 61 73 74 |N after |the last|
|00002540| 20 6c 69 6e 65 20 6f 66 | 20 72 65 73 74 72 69 63 | line of| restric|
|00002550| 74 65 64 57 6f 72 64 73 | 0d 64 65 6c 65 74 65 20 |tedWords|.delete |
|00002560| 74 68 65 20 6c 61 73 74 | 20 6c 69 6e 65 20 6f 66 |the last| line of|
|00002570| 20 72 65 73 74 72 69 63 | 74 65 64 57 6f 72 64 73 | restric|tedWords|
|00002580| 20 2d 2d 20 28 65 78 74 | 72 61 20 72 65 74 75 72 | -- (ext|ra retur|
|00002590| 6e 29 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 63 |n).repea|t with c|
|000025a0| 6f 75 6e 74 65 72 20 3d | 20 31 20 74 6f 20 39 0d |ounter =| 1 to 9.|
|000025b0| 69 66 20 4e 61 6d 65 20 | 3d 20 6c 69 6e 65 20 63 |if Name |= line c|
|000025c0| 6f 75 6e 74 65 72 20 6f | 66 20 72 65 73 74 72 69 |ounter o|f restri|
|000025d0| 63 74 65 64 57 6f 72 64 | 73 20 74 68 65 6e 0d 61 |ctedWord|s then.a|
|000025e0| 6e 73 77 65 72 20 22 54 | 68 65 20 77 6f 72 64 20 |nswer "T|he word |
|000025f0| 22 26 51 55 4f 54 45 26 | 4e 61 6d 65 26 51 55 4f |""E&|Name&QUO|
|00002600| 54 45 26 26 22 69 73 20 | 61 20 72 65 73 74 72 69 |TE&&"is |a restri|
|00002610| 63 74 65 64 20 77 6f 72 | 64 21 22 26 52 45 54 55 |cted wor|d!"&RETU|
|00002620| 52 4e 26 22 50 6c 65 61 | 73 65 20 63 68 6f 6f 73 |RN&"Plea|se choos|
|00002630| 65 20 61 6e 6f 74 68 65 | 72 20 6e 61 6d 65 2e 22 |e anothe|r name."|
|00002640| 0d 65 78 69 74 20 74 6f | 20 48 79 70 65 72 43 61 |.exit to| HyperCa|
|00002650| 72 64 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 |rd.end i|f.end re|
|00002660| 70 65 61 74 0d 2d 2d 20 | 43 48 45 43 4b 53 20 46 |peat.-- |CHECKS F|
|00002670| 4f 52 20 49 4c 4c 45 47 | 41 4c 20 43 48 41 52 53 |OR ILLEG|AL CHARS|
|00002680| 0d 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 |.put emp|ty into |
|00002690| 62 61 64 43 68 61 72 73 | 0d 70 75 74 20 65 6d 70 |badChars|.put emp|
|000026a0| 74 79 20 69 6e 74 6f 20 | 74 65 73 74 0d 72 65 70 |ty into |test.rep|
|000026b0| 65 61 74 20 77 69 74 68 | 20 63 6f 75 6e 74 65 72 |eat with| counter|
|000026c0| 20 3d 20 31 20 74 6f 20 | 28 74 68 65 20 6e 75 6d | = 1 to |(the num|
|000026d0| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 69 6e 20 |ber of c|hars in |
|000026e0| 4e 61 6d 65 29 0d 70 75 | 74 20 63 68 61 72 20 63 |Name).pu|t char c|
|000026f0| 6f 75 6e 74 65 72 20 6f | 66 20 4e 61 6d 65 20 69 |ounter o|f Name i|
|00002700| 6e 74 6f 20 74 65 73 74 | 43 68 61 72 0d 70 75 74 |nto test|Char.put|
|00002710| 20 63 68 61 72 54 6f 4e | 75 6d 28 74 65 73 74 43 | charToN|um(testC|
|00002720| 68 61 72 29 20 69 6e 74 | 6f 20 74 65 6d 70 43 68 |har) int|o tempCh|
|00002730| 61 72 0d 69 66 20 74 65 | 6d 70 43 68 61 72 20 3e |ar.if te|mpChar >|
|00002740| 3d 20 36 35 20 61 6e 64 | 20 74 65 6d 70 43 68 61 |= 65 and| tempCha|
|00002750| 72 20 3c 3d 20 39 30 20 | 74 68 65 6e 20 70 75 74 |r <= 90 |then put|
|00002760| 20 30 20 69 6e 74 6f 20 | 74 65 73 74 20 65 6c 73 | 0 into |test els|
|00002770| 65 20 61 64 64 20 31 20 | 74 6f 20 74 65 73 74 0d |e add 1 |to test.|
|00002780| 69 66 20 74 65 6d 70 43 | 68 61 72 20 3e 3d 20 39 |if tempC|har >= 9|
|00002790| 37 20 61 6e 64 20 74 65 | 6d 70 43 68 61 72 20 3c |7 and te|mpChar <|
|000027a0| 3d 20 31 32 32 20 74 68 | 65 6e 20 70 75 74 20 30 |= 122 th|en put 0|
|000027b0| 20 69 6e 74 6f 20 74 65 | 73 74 20 65 6c 73 65 20 | into te|st else |
|000027c0| 61 64 64 20 31 20 74 6f | 20 74 65 73 74 0d 69 66 |add 1 to| test.if|
|000027d0| 20 74 65 6d 70 43 68 61 | 72 20 3e 3d 20 34 38 20 | tempCha|r >= 48 |
|000027e0| 61 6e 64 20 74 65 6d 70 | 43 68 61 72 20 3c 3d 20 |and temp|Char <= |
|000027f0| 35 37 20 74 68 65 6e 20 | 70 75 74 20 30 20 69 6e |57 then |put 0 in|
|00002800| 74 6f 20 74 65 73 74 20 | 65 6c 73 65 20 61 64 64 |to test |else add|
|00002810| 20 31 20 74 6f 20 74 65 | 73 74 0d 69 66 20 74 65 | 1 to te|st.if te|
|00002820| 73 74 20 3e 20 32 20 74 | 68 65 6e 0d 70 75 74 20 |st > 2 t|hen.put |
|00002830| 22 20 22 26 51 55 4f 54 | 45 26 63 68 61 72 61 63 |" ""|E&charac|
|00002840| 74 65 72 20 63 6f 75 6e | 74 65 72 20 6f 66 20 4e |ter coun|ter of N|
|00002850| 61 6d 65 26 51 55 4f 54 | 45 26 22 20 22 20 61 66 |ame"|E&" " af|
|00002860| 74 65 72 20 62 61 64 43 | 68 61 72 73 0d 65 6e 64 |ter badC|hars.end|
|00002870| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 69 | if.end |repeat.i|
|00002880| 66 20 62 61 64 43 68 61 | 72 73 20 ad 20 65 6d 70 |f badCha|rs . emp|
|00002890| 74 79 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 51 |ty then.|answer Q|
|000028a0| 55 4f 54 45 26 4e 61 6d | 65 26 51 55 4f 54 45 26 |UOTE&Nam|e"E&|
|000028b0| 52 45 54 55 52 4e 26 22 | 54 68 65 20 43 68 61 72 |RETURN&"|The Char|
|000028c0| 61 63 74 65 72 28 73 29 | 20 22 26 62 61 64 43 68 |acter(s)| "&badCh|
|000028d0| 61 72 73 26 22 20 61 72 | 65 20 72 65 73 74 72 69 |ars&" ar|e restri|
|000028e0| 63 74 65 64 20 63 68 61 | 72 61 63 74 65 72 73 21 |cted cha|racters!|
|000028f0| 22 0d 65 78 69 74 20 74 | 6f 20 48 79 70 65 72 43 |".exit t|o HyperC|
|00002900| 61 72 64 0d 65 6e 64 20 | 69 66 0d 2d 2d 0d 69 66 |ard.end |if.--.if|
|00002910| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|00002920| 68 61 72 73 20 69 6e 20 | 4e 61 6d 65 20 3e 20 31 |hars in |Name > 1|
|00002930| 30 20 74 68 65 6e 0d 70 | 75 74 20 52 45 54 55 52 |0 then.p|ut RETUR|
|00002940| 4e 26 22 41 20 6e 61 6d | 65 20 6d 75 73 74 20 62 |N&"A nam|e must b|
|00002950| 65 20 74 65 6e 20 63 68 | 61 72 61 63 74 65 72 73 |e ten ch|aracters|
|00002960| 20 6f 72 20 6c 65 73 73 | 21 22 20 61 66 74 65 72 | or less|!" after|
|00002970| 20 73 74 61 74 65 6d 65 | 6e 74 0d 65 6e 64 20 69 | stateme|nt.end i|
|00002980| 66 0d 2d 2d 0d 70 75 74 | 20 4e 61 6d 65 20 69 6e |f.--.put| Name in|
|00002990| 74 6f 20 6e 61 6d 65 43 | 68 6f 73 65 6e 0d 70 75 |to nameC|hosen.pu|
|000029a0| 74 20 22 54 3d 41 6c 6c | 22 20 69 6e 74 6f 20 54 |t "T=All|" into T|
|000029b0| 79 70 65 0d 70 75 74 20 | 22 4f 3d 54 4e 49 22 20 |ype.put |"O=TNI" |
|000029c0| 69 6e 74 6f 20 4f 75 74 | 70 75 74 0d 67 65 74 20 |into Out|put.get |
|000029d0| 46 75 6c 6c 52 65 73 4c | 69 73 74 28 54 79 70 65 |FullResL|ist(Type|
|000029e0| 2c 4f 75 74 70 75 74 29 | 0d 69 66 20 66 69 72 73 |,Output)|.if firs|
|000029f0| 74 20 77 6f 72 64 20 6f | 66 20 69 74 20 69 73 20 |t word o|f it is |
|00002a00| 22 45 72 72 6f 72 22 20 | 20 74 68 65 6e 0d 62 65 |"Error" | then.be|
|00002a10| 65 70 0d 61 6e 73 77 65 | 72 20 69 74 0d 65 78 69 |ep.answe|r it.exi|
|00002a20| 74 20 74 6f 20 48 79 70 | 65 72 43 61 72 64 0d 65 |t to Hyp|erCard.e|
|00002a30| 6e 64 20 69 66 0d 70 75 | 74 20 74 68 65 20 6e 75 |nd if.pu|t the nu|
|00002a40| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 69 6e |mber of |lines in|
|00002a50| 20 69 74 20 69 6e 74 6f | 20 6c 69 6e 65 49 6e 49 | it into| lineInI|
|00002a60| 74 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 63 6f |t.repeat| with co|
|00002a70| 75 6e 74 65 72 20 3d 20 | 31 20 74 6f 20 6c 69 6e |unter = |1 to lin|
|00002a80| 65 49 6e 49 74 0d 69 66 | 20 6e 61 6d 65 43 68 6f |eInIt.if| nameCho|
|00002a90| 73 65 6e 20 3d 20 69 74 | 65 6d 20 32 20 6f 66 20 |sen = it|em 2 of |
|00002aa0| 6c 69 6e 65 20 63 6f 75 | 6e 74 65 72 20 6f 66 20 |line cou|nter of |
|00002ab0| 69 74 20 74 68 65 6e 20 | 70 75 74 20 52 45 54 55 |it then |put RETU|
|00002ac0| 52 4e 26 22 54 68 61 74 | 20 6e 61 6d 65 20 69 73 |RN&"That| name is|
|00002ad0| 20 61 6c 72 65 61 64 79 | 20 69 6e 20 75 73 65 21 | already| in use!|
|00002ae0| 22 20 61 66 74 65 72 20 | 73 74 61 74 65 6d 65 6e |" after |statemen|
|00002af0| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 0d 69 66 |t.end re|peat..if|
|00002b00| 20 73 74 61 74 65 6d 65 | 6e 74 20 ad 20 65 6d 70 | stateme|nt . emp|
|00002b10| 74 79 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 73 |ty then.|answer s|
|00002b20| 74 61 74 65 6d 65 6e 74 | 0d 65 78 69 74 20 74 6f |tatement|.exit to|
|00002b30| 20 48 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | HyperCa|rd.end i|
|00002b40| 66 0d 2d 2d 0d 70 75 74 | 20 6e 61 6d 65 43 68 6f |f.--.put| nameCho|
|00002b50| 73 65 6e 20 69 6e 74 6f | 20 6e 65 77 4e 61 6d 65 |sen into| newName|
|00002b60| 0d 61 6e 73 77 65 72 20 | 22 52 65 63 6f 72 64 69 |.answer |"Recordi|
|00002b70| 6e 67 20 71 75 61 6c 69 | 74 79 20 3a 22 20 77 69 |ng quali|ty :" wi|
|00002b80| 74 68 20 22 47 6f 6f 64 | 22 20 6f 72 20 22 42 65 |th "Good|" or "Be|
|00002b90| 73 74 22 20 6f 72 20 22 | 42 65 74 74 65 72 22 0d |st" or "|Better".|
|00002ba0| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 51 75 61 6c |put it i|nto Qual|
|00002bb0| 69 74 79 0d 0d 0d 53 6f | 75 6e 64 52 65 63 6f 72 |ity...So|undRecor|
|00002bc0| 64 20 4e 61 6d 65 2c 51 | 75 61 6c 69 74 79 0d 69 |d Name,Q|uality.i|
|00002bd0| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 ad 20 65 |f the re|sult . e|
|00002be0| 6d 70 74 79 0d 74 68 65 | 6e 20 61 6e 73 77 65 72 |mpty.the|n answer|
|00002bf0| 20 74 68 65 20 52 65 73 | 75 6c 74 0d 65 6e 64 20 | the Res|ult.end |
|00002c00| 72 65 63 6f 72 64 53 6f | 75 6e 64 0d 0d 0d 6f 6e |recordSo|und...on|
|00002c10| 20 63 72 65 61 74 65 58 | 52 65 73 53 74 61 63 6b | createX|ResStack|
|00002c20| 0d 70 75 74 20 22 41 4c | 4c 22 20 69 6e 74 6f 20 |.put "AL|L" into |
|00002c30| 69 74 0d 69 66 20 69 74 | 20 ad 20 65 6d 70 74 79 |it.if it| . empty|
|00002c40| 0d 74 68 65 6e 20 70 75 | 74 20 22 54 3d 22 20 26 |.then pu|t "T=" &|
|00002c50| 20 69 74 20 69 6e 74 6f | 20 54 79 70 65 0d 65 6c | it into| Type.el|
|00002c60| 73 65 20 70 75 74 20 22 | 54 3d 41 4c 4c 22 20 69 |se put "|T=ALL" i|
|00002c70| 6e 74 6f 20 54 79 70 65 | 0d 70 75 74 20 22 54 4e |nto Type|.put "TN|
|00002c80| 49 22 20 69 6e 74 6f 20 | 69 74 0d 69 66 20 69 74 |I" into |it.if it|
|00002c90| 20 ad 20 65 6d 70 74 79 | 0d 74 68 65 6e 20 70 75 | . empty|.then pu|
|00002ca0| 74 20 22 4f 3d 22 20 26 | 20 69 74 20 69 6e 74 6f |t "O=" &| it into|
|00002cb0| 20 4f 75 74 70 75 74 0d | 65 6c 73 65 20 70 75 74 | Output.|else put|
|00002cc0| 20 22 4f 3d 54 4e 49 22 | 20 69 6e 74 6f 20 4f 75 | "O=TNI"| into Ou|
|00002cd0| 74 70 75 74 0d 2d 2d 20 | 66 69 6c 65 20 74 6f 20 |tput.-- |file to |
|00002ce0| 73 65 61 72 63 68 20 69 | 6e 0d 70 75 74 20 74 68 |search i|n.put th|
|00002cf0| 65 20 73 68 6f 72 74 20 | 6e 61 6d 65 20 6f 66 20 |e short |name of |
|00002d00| 74 68 69 73 20 73 74 61 | 63 6b 20 69 6e 74 6f 20 |this sta|ck into |
|00002d10| 69 74 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f |it.set c|ursor to|
|00002d20| 20 77 61 74 63 68 0d 69 | 66 20 69 74 20 69 73 20 | watch.i|f it is |
|00002d30| 65 6d 70 74 79 20 74 68 | 65 6e 0d 67 65 74 20 46 |empty th|en.get F|
|00002d40| 75 6c 6c 52 65 73 4c 69 | 73 74 28 54 79 70 65 2c |ullResLi|st(Type,|
|00002d50| 4f 75 74 70 75 74 29 0d | 65 6c 73 65 0d 67 65 74 |Output).|else.get|
|00002d60| 20 46 75 6c 6c 52 65 73 | 4c 69 73 74 28 54 79 70 | FullRes|List(Typ|
|00002d70| 65 2c 4f 75 74 70 75 74 | 2c 22 57 3d 22 20 26 20 |e,Output|,"W=" & |
|00002d80| 69 74 29 0d 65 6e 64 20 | 69 66 0d 69 66 20 66 69 |it).end |if.if fi|
|00002d90| 72 73 74 20 77 6f 72 64 | 20 6f 66 20 69 74 20 69 |rst word| of it i|
|00002da0| 73 20 22 45 72 72 6f 72 | 22 0d 74 68 65 6e 0d 62 |s "Error|".then.b|
|00002db0| 65 65 70 0d 61 6e 73 77 | 65 72 20 69 74 0d 65 78 |eep.answ|er it.ex|
|00002dc0| 69 74 20 74 6f 20 48 79 | 70 65 72 43 61 72 64 0d |it to Hy|perCard.|
|00002dd0| 65 6c 73 65 0d 58 48 6f | 6d 65 52 65 73 6f 75 72 |else.XHo|meResour|
|00002de0| 63 65 73 20 69 74 0d 67 | 6c 6f 62 61 6c 20 61 6c |ces it.g|lobal al|
|00002df0| 6c 52 65 73 0d 69 66 20 | 61 6c 6c 52 65 73 20 3d |lRes.if |allRes =|
|00002e00| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 62 65 65 70 | empty t|hen.beep|
|00002e10| 0d 61 6e 73 77 65 72 20 | 22 4e 6f 20 52 65 73 6f |.answer |"No Reso|
|00002e20| 75 72 63 65 73 20 49 6e | 20 22 26 28 74 68 65 20 |urces In| "&(the |
|00002e30| 73 68 6f 72 74 20 4e 61 | 6d 65 20 6f 66 20 74 68 |short Na|me of th|
|00002e40| 69 73 20 73 74 61 63 6b | 29 0d 65 78 69 74 20 74 |is stack|).exit t|
|00002e50| 6f 20 48 79 70 65 72 43 | 61 72 64 0d 65 6e 64 20 |o HyperC|ard.end |
|00002e60| 69 66 0d 65 6e 64 20 69 | 66 0d 2d 2d 0d 70 75 74 |if.end i|f.--.put|
|00002e70| 20 61 6c 6c 52 65 73 20 | 69 6e 74 6f 20 52 65 73 | allRes |into Res|
|00002e80| 6f 75 72 63 65 4c 69 73 | 74 0d 70 75 74 20 74 68 |ourceLis|t.put th|
|00002e90| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |e number| of line|
|00002ea0| 73 20 69 6e 20 52 65 73 | 6f 75 72 63 65 4c 69 73 |s in Res|ourceLis|
|00002eb0| 74 20 69 6e 74 6f 20 6e | 75 6d 62 65 72 4f 66 52 |t into n|umberOfR|
|00002ec0| 65 73 6f 75 72 63 65 73 | 0d 0d 70 75 74 20 66 6c |esources|..put fl|
|00002ed0| 64 20 69 64 20 31 20 69 | 6e 74 6f 20 6d 61 69 6e |d id 1 i|nto main|
|00002ee0| 48 61 6e 64 6c 65 72 0d | 70 75 74 20 66 6c 64 20 |Handler.|put fld |
|00002ef0| 69 64 20 32 20 69 6e 74 | 6f 20 73 75 62 4d 61 69 |id 2 int|o subMai|
|00002f00| 6e 48 61 6e 64 6c 65 72 | 0d 70 75 74 20 66 6c 64 |nHandler|.put fld|
|00002f10| 20 69 64 20 33 20 69 6e | 74 6f 20 72 65 73 48 61 | id 3 in|to resHa|
|00002f20| 6e 64 6c 65 72 0d 72 65 | 70 65 61 74 20 77 69 74 |ndler.re|peat wit|
|00002f30| 68 20 63 6f 75 6e 74 65 | 72 20 3d 20 31 20 74 6f |h counte|r = 1 to|
|00002f40| 20 6e 75 6d 62 65 72 4f | 66 52 65 73 6f 75 72 63 | numberO|fResourc|
|00002f50| 65 73 0d 70 75 74 20 73 | 75 62 4d 61 69 6e 48 61 |es.put s|ubMainHa|
|00002f60| 6e 64 6c 65 72 20 69 6e | 74 6f 20 74 65 6d 70 48 |ndler in|to tempH|
|00002f70| 61 6e 64 6c 65 72 0d 70 | 75 74 20 74 68 65 20 6e |andler.p|ut the n|
|00002f80| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 69 |umber of| lines i|
|00002f90| 6e 20 6d 61 69 6e 48 61 | 6e 64 6c 65 72 20 69 6e |n mainHa|ndler in|
|00002fa0| 74 6f 20 6c 69 6e 65 73 | 49 6e 4d 61 69 6e 48 61 |to lines|InMainHa|
|00002fb0| 6e 64 6c 65 72 0d 70 75 | 74 20 51 55 4f 54 45 26 |ndler.pu|t QUOTE&|
|00002fc0| 28 69 74 65 6d 20 32 20 | 6f 66 20 6c 69 6e 65 20 |(item 2 |of line |
|00002fd0| 63 6f 75 6e 74 65 72 20 | 6f 66 20 52 65 73 6f 75 |counter |of Resou|
|00002fe0| 72 63 65 4c 69 73 74 29 | 26 51 55 4f 54 45 20 69 |rceList)|"E i|
|00002ff0| 6e 74 6f 20 77 6f 72 64 | 20 34 20 6f 66 20 74 65 |nto word| 4 of te|
|00003000| 6d 70 48 61 6e 64 6c 65 | 72 0d 70 75 74 20 52 65 |mpHandle|r.put Re|
|00003010| 73 6f 75 72 63 65 26 63 | 6f 75 6e 74 65 72 20 69 |source&c|ounter i|
|00003020| 6e 74 6f 20 77 6f 72 64 | 20 31 30 20 6f 66 20 74 |nto word| 10 of t|
|00003030| 65 6d 70 48 61 6e 64 6c | 65 72 0d 70 75 74 20 74 |empHandl|er.put t|
|00003040| 65 6d 70 48 61 6e 64 6c | 65 72 20 62 65 66 6f 72 |empHandl|er befor|
|00003050| 65 20 74 68 65 20 6c 61 | 73 74 20 6c 69 6e 65 20 |e the la|st line |
|00003060| 6f 66 20 6d 61 69 6e 48 | 61 6e 64 6c 65 72 0d 65 |of mainH|andler.e|
|00003070| 6e 64 20 72 65 70 65 61 | 74 0d 70 75 74 20 6d 61 |nd repea|t.put ma|
|00003080| 69 6e 48 61 6e 64 6c 65 | 72 20 69 6e 74 6f 20 66 |inHandle|r into f|
|00003090| 6c 64 20 34 0d 70 75 74 | 20 52 45 54 55 52 4e 20 |ld 4.put| RETURN |
|000030a0| 61 66 74 65 72 20 66 6c | 64 20 69 64 20 34 0d 0d |after fl|d id 4..|
|000030b0| 2d 2d 20 63 68 65 63 6b | 73 20 74 6f 20 73 65 65 |-- check|s to see|
|000030c0| 20 69 66 20 74 68 65 72 | 65 20 69 73 20 61 6e 79 | if ther|e is any|
|000030d0| 20 73 63 72 69 70 74 20 | 66 72 6f 6d 20 58 54 6f | script |from XTo|
|000030e0| 6f 6c 73 0d 69 66 20 66 | 6c 64 20 69 64 20 33 30 |ols.if f|ld id 30|
|000030f0| 20 ad 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 70 75 | . empty| then.pu|
|00003100| 74 20 66 6c 64 20 69 64 | 20 33 30 20 69 6e 74 6f |t fld id| 30 into|
|00003110| 20 58 53 63 72 69 70 74 | 0d 70 75 74 20 52 45 54 | XScript|.put RET|
|00003120| 55 52 4e 26 22 2d 2d 20 | 58 54 6f 6f 6c 73 20 53 |URN&"-- |XTools S|
|00003130| 63 72 69 70 74 22 26 52 | 45 54 55 52 4e 26 58 53 |cript"&R|ETURN&XS|
|00003140| 63 72 69 70 74 26 52 45 | 54 55 52 4e 20 61 66 74 |cript&RE|TURN aft|
|00003150| 65 72 20 66 6c 64 20 69 | 64 20 34 0d 65 6e 64 20 |er fld i|d 4.end |
|00003160| 69 66 0d 0d 2d 2d 20 63 | 68 65 63 6b 73 20 74 6f |if..-- c|hecks to|
|00003170| 20 73 65 65 20 69 66 20 | 61 6e 79 20 50 49 43 54 | see if |any PICT|
|00003180| 73 20 68 61 76 65 20 61 | 6c 74 65 72 6e 61 74 69 |s have a|lternati|
|00003190| 76 65 20 77 69 6e 64 6f | 77 20 73 74 79 6c 65 73 |ve windo|w styles|
|000031a0| 0d 69 66 20 66 6c 64 20 | 69 64 20 35 20 ad 20 65 |.if fld |id 5 . e|
|000031b0| 6d 70 74 79 20 74 68 65 | 6e 20 70 75 74 20 66 6c |mpty the|n put fl|
|000031c0| 64 20 69 64 20 35 20 69 | 6e 74 6f 20 61 6c 74 65 |d id 5 i|nto alte|
|000031d0| 72 6e 61 74 65 57 69 6e | 64 6f 77 73 0d 0d 72 65 |rnateWin|dows..re|
|000031e0| 70 65 61 74 20 77 69 74 | 68 20 52 65 73 43 6f 75 |peat wit|h ResCou|
|000031f0| 6e 74 65 72 20 3d 20 31 | 20 74 6f 20 6e 75 6d 62 |nter = 1| to numb|
|00003200| 65 72 4f 66 52 65 73 6f | 75 72 63 65 73 0d 70 75 |erOfReso|urces.pu|
|00003210| 74 20 72 65 73 48 61 6e | 64 6c 65 72 20 69 6e 74 |t resHan|dler int|
|00003220| 6f 20 74 65 6d 70 48 61 | 6e 64 6c 65 72 0d 70 75 |o tempHa|ndler.pu|
|00003230| 74 20 22 52 65 73 6f 75 | 72 63 65 22 26 52 65 73 |t "Resou|rce"&Res|
|00003240| 43 6f 75 6e 74 65 72 20 | 69 6e 74 6f 20 77 6f 72 |Counter |into wor|
|00003250| 64 20 32 20 6f 66 20 74 | 65 6d 70 48 61 6e 64 6c |d 2 of t|empHandl|
|00003260| 65 72 0d 70 75 74 20 22 | 52 65 73 6f 75 72 63 65 |er.put "|Resource|
|00003270| 22 26 52 65 73 43 6f 75 | 6e 74 65 72 20 69 6e 74 |"&ResCou|nter int|
|00003280| 6f 20 74 68 65 20 6c 61 | 73 74 20 77 6f 72 64 20 |o the la|st word |
|00003290| 6f 66 20 74 65 6d 70 48 | 61 6e 64 6c 65 72 0d 69 |of tempH|andler.i|
|000032a0| 66 20 69 74 65 6d 20 31 | 20 6f 66 20 6c 69 6e 65 |f item 1| of line|
|000032b0| 20 63 6f 75 6e 74 65 72 | 20 6f 66 20 52 65 73 6f | counter| of Reso|
|000032c0| 75 72 63 65 4c 69 73 74 | 20 3d 20 22 73 6e 64 20 |urceList| = "snd |
|000032d0| 22 20 74 68 65 6e 0d 70 | 75 74 20 22 70 6c 61 79 |" then.p|ut "play|
|000032e0| 22 20 69 6e 74 6f 20 77 | 6f 72 64 20 35 20 6f 66 |" into w|ord 5 of|
|000032f0| 20 74 65 6d 70 48 61 6e | 64 6c 65 72 0d 65 6e 64 | tempHan|dler.end|
|00003300| 20 69 66 0d 0d 69 66 20 | 69 74 65 6d 20 31 20 6f | if..if |item 1 o|
|00003310| 66 20 6c 69 6e 65 20 52 | 65 73 43 6f 75 6e 74 65 |f line R|esCounte|
|00003320| 72 20 6f 66 20 52 65 73 | 6f 75 72 63 65 4c 69 73 |r of Res|ourceLis|
|00003330| 74 20 3d 20 22 50 49 43 | 54 22 20 74 68 65 6e 0d |t = "PIC|T" then.|
|00003340| 2d 2d 20 63 68 65 63 6b | 73 20 74 6f 20 73 65 65 |-- check|s to see|
|00003350| 20 69 66 20 50 49 43 54 | 20 68 61 73 20 61 6c 74 | if PICT| has alt|
|00003360| 65 72 6e 61 74 69 76 65 | 20 77 69 6e 64 6f 77 20 |ernative| window |
|00003370| 73 74 79 6c 65 0d 69 66 | 20 61 6c 74 65 72 6e 61 |style.if| alterna|
|00003380| 74 65 57 69 6e 64 6f 77 | 73 20 ad 20 65 6d 70 74 |teWindow|s . empt|
|00003390| 79 20 74 68 65 6e 0d 2d | 2d 20 76 77 0d 70 75 74 |y then.-|- vw.put|
|000033a0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|000033b0| 69 6e 65 73 20 69 6e 20 | 61 6c 74 65 72 6e 61 74 |ines in |alternat|
|000033c0| 65 57 69 6e 64 6f 77 73 | 20 69 6e 74 6f 20 61 6c |eWindows| into al|
|000033d0| 74 65 72 6e 61 74 69 76 | 65 4c 69 6e 65 73 0d 72 |ternativ|eLines.r|
|000033e0| 65 70 65 61 74 20 77 69 | 74 68 20 61 6c 74 65 72 |epeat wi|th alter|
|000033f0| 43 6f 75 6e 74 65 72 20 | 3d 20 31 20 74 6f 20 61 |Counter |= 1 to a|
|00003400| 6c 74 65 72 6e 61 74 69 | 76 65 4c 69 6e 65 73 0d |lternati|veLines.|
|00003410| 69 66 20 69 74 65 6d 20 | 31 20 6f 66 20 6c 69 6e |if item |1 of lin|
|00003420| 65 20 61 6c 74 65 72 43 | 6f 75 6e 74 65 72 20 6f |e alterC|ounter o|
|00003430| 66 20 61 6c 74 65 72 6e | 61 74 65 57 69 6e 64 6f |f altern|ateWindo|
|00003440| 77 73 20 3d 20 28 69 74 | 65 6d 20 32 20 6f 66 20 |ws = (it|em 2 of |
|00003450| 6c 69 6e 65 20 52 65 73 | 43 6f 75 6e 74 65 72 20 |line Res|Counter |
|00003460| 6f 66 20 52 65 73 6f 75 | 72 63 65 4c 69 73 74 29 |of Resou|rceList)|
|00003470| 20 74 68 65 6e 0d 70 75 | 74 20 22 2c 22 26 28 69 | then.pu|t ","&(i|
|00003480| 74 65 6d 20 32 20 6f 66 | 20 6c 69 6e 65 20 61 6c |tem 2 of| line al|
|00003490| 74 65 72 43 6f 75 6e 74 | 65 72 20 6f 66 20 61 6c |terCount|er of al|
|000034a0| 74 65 72 6e 61 74 65 57 | 69 6e 64 6f 77 73 29 20 |ternateW|indows) |
|000034b0| 61 66 74 65 72 20 77 6f | 72 64 20 37 20 6f 66 20 |after wo|rd 7 of |
|000034c0| 74 65 6d 70 48 61 6e 64 | 6c 65 72 0d 65 78 69 74 |tempHand|ler.exit|
|000034d0| 20 72 65 70 65 61 74 0d | 65 6e 64 20 69 66 0d 65 | repeat.|end if.e|
|000034e0| 6e 64 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |nd repea|t.end if|
|000034f0| 0d 2d 2d 0d 70 75 74 20 | 22 50 69 63 74 75 72 65 |.--.put |"Picture|
|00003500| 22 20 69 6e 74 6f 20 77 | 6f 72 64 20 35 20 6f 66 |" into w|ord 5 of|
|00003510| 20 74 65 6d 70 48 61 6e | 64 6c 65 72 0d 65 6c 73 | tempHan|dler.els|
|00003520| 65 0d 69 66 20 69 74 65 | 6d 20 31 20 6f 66 20 6c |e.if ite|m 1 of l|
|00003530| 69 6e 65 20 52 65 73 43 | 6f 75 6e 74 65 72 20 6f |ine ResC|ounter o|
|00003540| 66 20 52 65 73 6f 75 72 | 63 65 4c 69 73 74 20 3d |f Resour|ceList =|
|00003550| 20 22 73 6e 64 20 22 20 | 74 68 65 6e 0d 70 75 74 | "snd " |then.put|
|00003560| 20 22 50 6c 61 79 22 20 | 69 6e 74 6f 20 77 6f 72 | "Play" |into wor|
|00003570| 64 20 35 20 6f 66 20 74 | 65 6d 70 48 61 6e 64 6c |d 5 of t|empHandl|
|00003580| 65 72 0d 64 65 6c 65 74 | 65 20 69 74 65 6d 20 32 |er.delet|e item 2|
|00003590| 20 6f 66 20 6c 69 6e 65 | 20 32 20 6f 66 20 74 65 | of line| 2 of te|
|000035a0| 6d 70 48 61 6e 64 6c 65 | 72 0d 65 6e 64 20 69 66 |mpHandle|r.end if|
|000035b0| 0d 65 6e 64 20 69 66 0d | 70 75 74 20 52 45 54 55 |.end if.|put RETU|
|000035c0| 52 4e 26 74 65 6d 70 48 | 61 6e 64 6c 65 72 20 61 |RN&tempH|andler a|
|000035d0| 66 74 65 72 20 66 6c 64 | 20 69 64 20 34 0d 65 6e |fter fld| id 4.en|
|000035e0| 64 20 72 65 70 65 61 74 | 0d 61 73 6b 20 22 45 6e |d repeat|.ask "En|
|000035f0| 74 65 72 20 74 68 65 20 | 4e 61 6d 65 20 6f 66 20 |ter the |Name of |
|00003600| 74 68 65 20 6e 65 77 20 | 58 72 65 73 20 53 74 61 |the new |Xres Sta|
|00003610| 63 6b 2e 2e 2e 22 26 52 | 45 54 55 52 4e 26 51 55 |ck..."&R|ETURN&QU|
|00003620| 4f 54 45 26 22 2e 72 65 | 73 22 26 51 55 4f 54 45 |OTE&".re|s""E|
|00003630| 26 22 20 77 69 6c 6c 20 | 62 65 20 61 70 70 65 6e |&" will |be appen|
|00003640| 64 65 64 20 74 6f 20 74 | 68 65 20 6e 61 6d 65 21 |ded to t|he name!|
|00003650| 22 0d 69 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |".if the| result |
|00003660| ad 20 65 6d 70 74 79 20 | 74 68 65 6e 0d 70 75 74 |. empty |then.put|
|00003670| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 66 6c 64 20 | empty i|nto fld |
|00003680| 69 64 20 34 20 2d 2d 20 | 74 6f 20 76 69 65 77 20 |id 4 -- |to view |
|00003690| 73 63 72 69 70 74 20 63 | 72 65 61 74 65 64 20 63 |script c|reated c|
|000036a0| 6f 6d 6d 65 6e 74 20 6f | 75 74 20 6c 69 6e 65 0d |omment o|ut line.|
|000036b0| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 61 |put empt|y into a|
|000036c0| 6c 6c 52 65 73 0d 65 78 | 69 74 20 74 6f 20 48 79 |llRes.ex|it to Hy|
|000036d0| 70 65 72 43 61 72 64 0d | 65 6e 64 20 69 66 0d 70 |perCard.|end if.p|
|000036e0| 75 74 20 69 74 20 69 6e | 74 6f 20 6e 61 6d 65 4f |ut it in|to nameO|
|000036f0| 66 4e 65 77 53 74 61 63 | 6b 0d 67 65 74 20 74 68 |fNewStac|k.get th|
|00003700| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 68 61 72 |e number| of char|
|00003710| 73 20 69 6e 20 6e 61 6d | 65 4f 66 4e 65 77 53 74 |s in nam|eOfNewSt|
|00003720| 61 63 6b 0d 69 66 20 63 | 68 61 72 20 69 74 2d 33 |ack.if c|har it-3|
|00003730| 20 74 6f 20 69 74 20 6f | 66 20 6e 61 6d 65 4f 66 | to it o|f nameOf|
|00003740| 4e 65 77 53 74 61 63 6b | 20 3d 20 22 2e 72 65 73 |NewStack| = ".res|
|00003750| 22 20 74 68 65 6e 20 64 | 65 6c 65 74 65 20 63 68 |" then d|elete ch|
|00003760| 61 72 20 69 74 2d 33 20 | 74 6f 20 69 74 20 6f 66 |ar it-3 |to it of|
|00003770| 20 6e 61 6d 65 4f 66 4e | 65 77 53 74 61 63 6b 0d | nameOfN|ewStack.|
|00003780| 70 75 74 20 6e 61 6d 65 | 4f 66 4e 65 77 53 74 61 |put name|OfNewSta|
|00003790| 63 6b 26 22 2e 72 65 73 | 22 20 69 6e 74 6f 20 6e |ck&".res|" into n|
|000037a0| 61 6d 65 4f 66 4e 65 77 | 53 74 61 63 6b 0d 70 75 |ameOfNew|Stack.pu|
|000037b0| 73 68 20 63 64 0d 0d 67 | 6c 6f 62 61 6c 20 6e 65 |sh cd..g|lobal ne|
|000037c0| 77 53 63 72 69 70 74 2c | 20 72 65 73 53 74 61 63 |wScript,| resStac|
|000037d0| 6b 4e 61 6d 65 2c 20 66 | 69 65 6c 64 53 63 72 69 |kName, f|ieldScri|
|000037e0| 70 74 0d 70 75 74 20 66 | 6c 64 20 69 64 20 34 20 |pt.put f|ld id 4 |
|000037f0| 69 6e 74 6f 20 6e 65 77 | 53 63 72 69 70 74 0d 70 |into new|Script.p|
|00003800| 75 74 20 6e 61 6d 65 4f | 66 4e 65 77 53 74 61 63 |ut nameO|fNewStac|
|00003810| 6b 20 69 6e 74 6f 20 72 | 65 73 53 74 61 63 6b 4e |k into r|esStackN|
|00003820| 61 6d 65 0d 73 65 74 20 | 63 75 72 73 6f 72 20 74 |ame.set |cursor t|
|00003830| 6f 20 77 61 74 63 68 0d | 6c 6f 63 6b 20 73 63 72 |o watch.|lock scr|
|00003840| 65 65 6e 0d 70 75 74 20 | 66 6c 64 20 69 64 20 32 |een.put |fld id 2|
|00003850| 36 20 69 6e 74 6f 20 66 | 69 65 6c 64 53 63 72 69 |6 into f|ieldScri|
|00003860| 70 74 0d 63 72 65 61 74 | 65 20 73 74 61 63 6b 20 |pt.creat|e stack |
|00003870| 72 65 73 53 74 61 63 6b | 4e 61 6d 65 20 69 6e 20 |resStack|Name in |
|00003880| 6e 65 77 20 77 69 6e 64 | 6f 77 0d 69 66 20 74 68 |new wind|ow.if th|
|00003890| 65 20 72 65 73 75 6c 74 | 20 ad 20 65 6d 70 74 79 |e result| . empty|
|000038a0| 20 74 68 65 6e 0d 61 6e | 73 77 65 72 20 22 54 68 | then.an|swer "Th|
|000038b0| 61 74 20 73 74 61 63 6b | 20 61 6c 72 65 61 64 79 |at stack| already|
|000038c0| 20 65 78 69 73 74 73 21 | 22 0d 65 78 69 74 20 74 | exists!|".exit t|
|000038d0| 6f 20 68 79 70 65 72 43 | 61 72 64 0d 65 6e 64 20 |o hyperC|ard.end |
|000038e0| 69 66 0d 0d 67 6c 6f 62 | 61 6c 20 6e 65 77 53 63 |if..glob|al newSc|
|000038f0| 72 69 70 74 2c 20 72 65 | 73 53 74 61 63 6b 4e 61 |ript, re|sStackNa|
|00003900| 6d 65 2c 20 61 6c 6c 52 | 65 73 2c 20 66 69 65 6c |me, allR|es, fiel|
|00003910| 64 53 63 72 69 70 74 0d | 69 66 20 74 68 65 20 73 |dScript.|if the s|
|00003920| 68 6f 72 74 20 6e 61 6d | 65 20 6f 66 20 74 68 69 |hort nam|e of thi|
|00003930| 73 20 73 74 61 63 6b 20 | 69 73 20 72 65 73 53 74 |s stack |is resSt|
|00003940| 61 63 6b 4e 61 6d 65 20 | 74 68 65 6e 0d 67 65 74 |ackName |then.get|
|00003950| 20 74 68 65 20 73 63 72 | 69 70 74 20 6f 66 20 74 | the scr|ipt of t|
|00003960| 68 69 73 20 73 74 61 63 | 6b 0d 69 66 20 69 74 20 |his stac|k.if it |
|00003970| 69 73 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 70 75 |is empty| then.pu|
|00003980| 74 20 61 6c 6c 52 65 73 | 20 69 6e 74 6f 20 74 65 |t allRes| into te|
|00003990| 6d 70 41 6c 6c 52 65 73 | 0d 72 65 70 65 61 74 20 |mpAllRes|.repeat |
|000039a0| 77 69 74 68 20 72 65 73 | 43 6f 75 6e 74 65 72 20 |with res|Counter |
|000039b0| 3d 20 31 20 74 6f 20 28 | 74 68 65 20 6e 75 6d 62 |= 1 to (|the numb|
|000039c0| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 74 |er of li|nes in t|
|000039d0| 65 6d 70 41 6c 6c 52 65 | 73 29 0d 64 65 6c 65 74 |empAllRe|s).delet|
|000039e0| 65 20 74 68 65 20 6c 61 | 73 74 20 69 74 65 6d 20 |e the la|st item |
|000039f0| 6f 66 20 6c 69 6e 65 20 | 72 65 73 43 6f 75 6e 74 |of line |resCount|
|00003a00| 65 72 20 6f 66 20 74 65 | 6d 70 41 6c 6c 52 65 73 |er of te|mpAllRes|
|00003a10| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 73 65 74 20 |.end rep|eat.set |
|00003a20| 74 68 65 20 73 63 72 69 | 70 74 20 6f 66 20 74 68 |the scri|pt of th|
|00003a30| 69 73 20 73 74 61 63 6b | 20 74 6f 20 6e 65 77 53 |is stack| to newS|
|00003a40| 63 72 69 70 74 0d 73 65 | 74 20 74 68 65 20 75 73 |cript.se|t the us|
|00003a50| 65 72 6c 65 76 65 6c 20 | 74 6f 20 35 0d 64 6f 4d |erlevel |to 5.doM|
|00003a60| 65 6e 75 20 22 4e 65 77 | 20 46 69 65 6c 64 22 0d |enu "New| Field".|
|00003a70| 73 65 74 20 74 68 65 20 | 73 74 79 6c 65 20 6f 66 |set the |style of|
|00003a80| 20 63 64 20 66 6c 64 20 | 31 20 74 6f 20 22 73 63 | cd fld |1 to "sc|
|00003a90| 72 6f 6c 6c 69 6e 67 22 | 0d 73 65 74 20 74 68 65 |rolling"|.set the|
|00003aa0| 20 74 65 78 74 46 6f 6e | 74 20 6f 66 20 63 64 20 | textFon|t of cd |
|00003ab0| 66 6c 64 20 31 20 74 6f | 20 22 43 68 69 63 61 67 |fld 1 to| "Chicag|
|00003ac0| 6f 22 0d 73 65 74 20 74 | 68 65 20 72 65 63 74 20 |o".set t|he rect |
|00003ad0| 6f 66 20 63 64 20 66 6c | 64 20 31 20 74 6f 20 31 |of cd fl|d 1 to 1|
|00003ae0| 38 35 2c 39 30 2c 33 33 | 32 2c 32 39 31 0d 70 75 |85,90,33|2,291.pu|
|00003af0| 74 20 74 65 6d 70 41 6c | 6c 52 65 73 20 69 6e 74 |t tempAl|lRes int|
|00003b00| 6f 20 63 64 20 66 6c 64 | 20 31 0d 73 65 74 20 74 |o cd fld| 1.set t|
|00003b10| 68 65 20 6c 6f 63 6b 54 | 65 78 74 20 6f 66 20 63 |he lockT|ext of c|
|00003b20| 64 20 66 6c 64 20 31 20 | 74 6f 20 74 72 75 65 0d |d fld 1 |to true.|
|00003b30| 73 65 74 20 74 68 65 20 | 73 63 72 69 70 74 20 6f |set the |script o|
|00003b40| 66 20 63 64 20 66 6c 64 | 20 31 20 74 6f 20 66 69 |f cd fld| 1 to fi|
|00003b50| 65 6c 64 53 63 72 69 70 | 74 0d 63 68 6f 6f 73 65 |eldScrip|t.choose|
|00003b60| 20 74 68 65 20 62 72 6f | 77 73 65 20 74 6f 6f 6c | the bro|wse tool|
|00003b70| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 0d |.end if.|end if..|
|00003b80| 70 6f 70 20 63 64 0d 67 | 6c 6f 62 61 6c 20 6e 65 |pop cd.g|lobal ne|
|00003b90| 77 53 63 72 69 70 74 2c | 20 72 65 73 53 74 61 63 |wScript,| resStac|
|00003ba0| 6b 4e 61 6d 65 2c 20 61 | 6c 6c 52 65 73 2c 20 66 |kName, a|llRes, f|
|00003bb0| 69 65 6c 64 53 63 72 69 | 70 74 0d 70 75 74 20 65 |ieldScri|pt.put e|
|00003bc0| 6d 70 74 79 20 69 6e 74 | 6f 20 66 6c 64 20 69 64 |mpty int|o fld id|
|00003bd0| 20 34 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 | 4.put e|mpty int|
|00003be0| 6f 20 6e 65 77 53 63 72 | 69 70 74 0d 2d 2d 20 63 |o newScr|ipt.-- c|
|00003bf0| 6f 70 79 20 72 65 73 6f | 75 72 63 65 73 20 69 6e |opy reso|urces in|
|00003c00| 74 6f 20 6e 65 77 20 73 | 74 61 63 6b 0d 72 65 70 |to new s|tack.rep|
|00003c10| 65 61 74 20 77 69 74 68 | 20 63 6f 75 6e 74 65 72 |eat with| counter|
|00003c20| 20 3d 20 31 20 74 6f 20 | 4e 75 6d 62 65 72 4f 66 | = 1 to |NumberOf|
|00003c30| 72 65 73 6f 75 72 63 65 | 73 0d 43 6f 70 79 52 65 |resource|s.CopyRe|
|00003c40| 73 20 28 74 68 65 20 73 | 68 6f 72 74 20 4e 61 6d |s (the s|hort Nam|
|00003c50| 65 20 6f 66 20 74 68 69 | 73 20 73 74 61 63 6b 29 |e of thi|s stack)|
|00003c60| 2c 72 65 73 53 74 61 63 | 6b 4e 61 6d 65 2c 20 28 |,resStac|kName, (|
|00003c70| 69 74 65 6d 20 31 20 6f | 66 20 6c 69 6e 65 20 63 |item 1 o|f line c|
|00003c80| 6f 75 6e 74 65 72 20 6f | 66 20 61 6c 6c 52 65 73 |ounter o|f allRes|
|00003c90| 29 2c 28 69 74 65 6d 20 | 32 20 6f 66 20 6c 69 6e |),(item |2 of lin|
|00003ca0| 65 20 63 6f 75 6e 74 65 | 72 20 6f 66 20 61 6c 6c |e counte|r of all|
|00003cb0| 52 65 73 29 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |Res).end| repeat.|
|00003cc0| 2d 2d 0d 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |--.put e|mpty int|
|00003cd0| 6f 20 66 69 65 6c 64 53 | 63 72 69 70 74 0d 70 75 |o fieldS|cript.pu|
|00003ce0| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 61 6c 6c |t empty |into all|
|00003cf0| 52 65 73 0d 62 65 65 70 | 0d 61 6e 73 77 65 72 20 |Res.beep|.answer |
|00003d00| 22 53 74 61 63 6b 20 22 | 26 72 65 73 53 74 61 63 |"Stack "|&resStac|
|00003d10| 6b 4e 61 6d 65 26 26 22 | 63 72 65 61 74 65 64 21 |kName&&"|created!|
|00003d20| 22 0d 65 6e 64 20 63 72 | 65 61 74 65 58 52 65 73 |".end cr|eateXRes|
|00003d30| 53 74 61 63 6b 0d 0d 6f | 6e 20 72 65 6e 61 6d 65 |Stack..o|n rename|
|00003d40| 52 65 73 6f 75 72 63 65 | 73 20 72 65 73 6f 75 72 |Resource|s resour|
|00003d50| 63 65 73 53 65 6c 65 63 | 74 65 64 0d 70 75 74 20 |cesSelec|ted.put |
|00003d60| 65 6d 70 74 79 20 69 6e | 74 6f 20 73 74 61 74 65 |empty in|to state|
|00003d70| 6d 65 6e 74 0d 72 65 70 | 65 61 74 20 77 69 74 68 |ment.rep|eat with|
|00003d80| 20 63 6f 75 6e 74 65 72 | 20 3d 20 31 20 74 6f 20 | counter| = 1 to |
|00003d90| 28 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c |(the num|ber of l|
|00003da0| 69 6e 65 73 20 69 6e 20 | 72 65 73 6f 75 72 63 65 |ines in |resource|
|00003db0| 73 53 65 6c 65 63 74 65 | 64 29 0d 73 65 74 20 63 |sSelecte|d).set c|
|00003dc0| 75 72 73 6f 72 20 74 6f | 20 77 61 74 63 68 0d 70 |ursor to| watch.p|
|00003dd0| 75 74 20 69 74 65 6d 20 | 33 20 6f 66 20 6c 69 6e |ut item |3 of lin|
|00003de0| 65 20 63 6f 75 6e 74 65 | 72 20 6f 66 20 72 65 73 |e counte|r of res|
|00003df0| 6f 75 72 63 65 73 53 65 | 6c 65 63 74 65 64 20 69 |ourcesSe|lected i|
|00003e00| 6e 74 6f 20 52 65 73 6f | 75 72 63 65 49 64 0d 70 |nto Reso|urceId.p|
|00003e10| 75 74 20 69 74 65 6d 20 | 32 20 6f 66 20 6c 69 6e |ut item |2 of lin|
|00003e20| 65 20 63 6f 75 6e 74 65 | 72 20 6f 66 20 72 65 73 |e counte|r of res|
|00003e30| 6f 75 72 63 65 73 53 65 | 6c 65 63 74 65 64 20 69 |ourcesSe|lected i|
|00003e40| 6e 74 6f 20 52 65 73 65 | 72 0d 70 75 74 20 69 74 |nto Rese|r.put it|
|00003e50| 65 6d 20 31 20 6f 66 20 | 6c 69 6e 65 20 63 6f 75 |em 1 of |line cou|
|00003e60| 6e 74 65 72 20 6f 66 20 | 72 65 73 6f 75 72 63 65 |nter of |resource|
|00003e70| 73 53 65 6c 65 63 74 65 | 64 20 69 6e 74 6f 20 74 |sSelecte|d into t|
|00003e80| 68 65 52 65 73 6f 75 72 | 63 65 0d 2d 2d 20 43 68 |heResour|ce.-- Ch|
|00003e90| 65 63 6b 73 20 74 6f 20 | 73 65 65 20 69 66 20 74 |ecks to |see if t|
|00003ea0| 68 65 72 65 20 69 73 20 | 58 54 6f 6f 6c 73 20 63 |here is |XTools c|
|00003eb0| 6f 6d 70 69 6c 65 64 20 | 53 63 72 69 70 74 0d 70 |ompiled |Script.p|
|00003ec0| 75 74 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ut the n|umber of|
|00003ed0| 20 6c 69 6e 65 73 20 69 | 6e 20 72 65 73 6f 75 72 | lines i|n resour|
|00003ee0| 63 65 73 53 65 6c 65 63 | 74 65 64 20 69 6e 74 6f |cesSelec|ted into|
|00003ef0| 20 6e 75 6d 62 65 72 4f | 66 52 65 73 0d 69 66 20 | numberO|fRes.if |
|00003f00| 66 6c 64 20 69 64 20 33 | 31 20 ad 20 65 6d 70 74 |fld id 3|1 . empt|
|00003f10| 79 20 61 6e 64 20 66 6c | 64 20 69 64 20 33 30 20 |y and fl|d id 30 |
|00003f20| ad 20 65 6d 70 74 79 20 | 74 68 65 6e 20 2d 2d 20 |. empty |then -- |
|00003f30| 66 6c 64 20 69 64 20 33 | 31 20 69 73 20 68 6f 6c |fld id 3|1 is hol|
|00003f40| 64 65 72 20 6f 66 20 72 | 65 73 6f 75 72 63 65 73 |der of r|esources|
|00003f50| 20 73 65 6c 65 63 74 65 | 64 20 69 6e 20 58 54 6f | selecte|d in XTo|
|00003f60| 6f 6c 73 0d 70 75 74 20 | 72 65 73 6f 75 72 63 65 |ols.put |resource|
|00003f70| 73 53 65 6c 65 63 74 65 | 64 20 69 6e 74 6f 20 74 |sSelecte|d into t|
|00003f80| 65 6d 70 52 65 73 53 65 | 6c 0d 70 75 74 20 65 6d |empResSe|l.put em|
|00003f90| 70 74 79 20 69 6e 74 6f | 20 75 73 65 64 52 65 73 |pty into| usedRes|
|00003fa0| 0d 70 75 74 20 66 6c 64 | 20 69 64 20 33 31 20 69 |.put fld| id 31 i|
|00003fb0| 6e 74 6f 20 58 54 6f 6f | 6c 73 52 65 73 0d 70 75 |nto XToo|lsRes.pu|
|00003fc0| 74 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |t the nu|mber of |
|00003fd0| 6c 69 6e 65 73 20 69 6e | 20 66 6c 64 20 69 64 20 |lines in| fld id |
|00003fe0| 33 31 20 69 6e 74 6f 20 | 4e 75 6d 62 65 72 58 54 |31 into |NumberXT|
|00003ff0| 6f 6f 6c 73 52 65 73 0d | 72 65 70 65 61 74 20 77 |oolsRes.|repeat w|
|00004000| 69 74 68 20 45 6f 75 6e | 74 65 72 20 3d 20 6e 75 |ith Eoun|ter = nu|
|00004010| 6d 62 65 72 4f 66 52 65 | 73 20 64 6f 77 6e 20 74 |mberOfRe|s down t|
|00004020| 6f 20 31 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |o 1.repe|at with |
|00004030| 44 6f 75 6e 74 65 72 20 | 3d 20 31 20 74 6f 20 4e |Dounter |= 1 to N|
|00004040| 75 6d 62 65 72 58 54 6f | 6f 6c 73 52 65 73 0d 69 |umberXTo|olsRes.i|
|00004050| 66 20 69 74 65 6d 20 32 | 20 6f 66 20 6c 69 6e 65 |f item 2| of line|
|00004060| 20 45 6f 75 6e 74 65 72 | 20 6f 66 20 74 65 6d 70 | Eounter| of temp|
|00004070| 52 65 73 53 65 6c 20 3d | 20 69 74 65 6d 20 33 20 |ResSel =| item 3 |
|00004080| 6f 66 20 6c 69 6e 65 20 | 44 6f 75 6e 74 65 72 20 |of line |Dounter |
|00004090| 6f 66 20 58 54 6f 6f 6c | 73 52 65 73 20 74 68 65 |of XTool|sRes the|
|000040a0| 6e 0d 70 75 74 20 28 69 | 74 65 6d 20 32 20 6f 66 |n.put (i|tem 2 of|
|000040b0| 20 6c 69 6e 65 20 45 6f | 75 6e 74 65 72 20 6f 66 | line Eo|unter of|
|000040c0| 20 74 65 6d 70 52 65 73 | 53 65 6c 29 26 22 20 22 | tempRes|Sel)&" "|
|000040d0| 20 61 66 74 65 72 20 75 | 73 65 64 52 65 73 0d 64 | after u|sedRes.d|
|000040e0| 65 6c 65 74 65 20 6c 69 | 6e 65 20 45 6f 75 6e 74 |elete li|ne Eount|
|000040f0| 65 72 20 6f 66 20 74 65 | 6d 70 52 65 73 53 65 6c |er of te|mpResSel|
|00004100| 0d 6e 65 78 74 20 72 65 | 70 65 61 74 0d 65 6e 64 |.next re|peat.end|
|00004110| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 | if.end |repeat.e|
|00004120| 6e 64 20 72 65 70 65 61 | 74 0d 62 65 65 70 0d 61 |nd repea|t.beep.a|
|00004130| 6e 73 77 65 72 20 22 52 | 65 73 6f 75 72 63 65 28 |nswer "R|esource(|
|00004140| 73 29 20 69 6e 20 75 73 | 65 20 62 79 20 58 54 6f |s) in us|e by XTo|
|00004150| 6f 6c 73 20 43 6f 6d 70 | 69 6c 65 64 20 53 63 72 |ols Comp|iled Scr|
|00004160| 69 70 74 22 26 52 45 54 | 55 52 4e 26 75 73 65 64 |ipt"&RET|URN&used|
|00004170| 52 65 73 26 52 45 54 55 | 52 4e 26 c2 0d 22 44 65 |Res&RETU|RN&.."De|
|00004180| 6c 65 74 65 20 73 63 72 | 69 70 74 20 77 69 74 68 |lete scr|ipt with|
|00004190| 20 58 54 6f 6f 6c 73 20 | 66 69 72 73 74 21 22 0d | XTools |first!".|
|000041a0| 65 78 69 74 20 74 6f 20 | 48 79 70 65 72 43 61 72 |exit to |HyperCar|
|000041b0| 64 0d 65 6e 64 20 69 66 | 0d 0d 2d 2d 0d 70 75 74 |d.end if|..--.put|
|000041c0| 20 30 20 69 6e 74 6f 20 | 77 69 6e 64 6f 77 45 78 | 0 into |windowEx|
|000041d0| 69 73 74 73 0d 70 75 74 | 20 74 68 65 20 77 69 6e |ists.put| the win|
|000041e0| 64 6f 77 73 20 69 6e 74 | 6f 20 77 69 6e 64 6f 77 |dows int|o window|
|000041f0| 73 4f 70 65 6e 0d 70 75 | 74 20 74 68 65 20 6e 75 |sOpen.pu|t the nu|
|00004200| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 69 6e |mber of |lines in|
|00004210| 20 74 68 65 20 77 69 6e | 64 6f 77 73 20 69 6e 74 | the win|dows int|
|00004220| 6f 20 6e 75 6d 62 65 72 | 4f 66 57 69 6e 64 6f 77 |o number|OfWindow|
|00004230| 73 0d 61 73 6b 20 22 52 | 65 6e 61 6d 65 20 22 26 |s.ask "R|ename "&|
|00004240| 51 55 4f 54 45 26 52 65 | 73 65 72 26 51 55 4f 54 |QUOTE&Re|ser"|
|00004250| 45 26 22 2e 2e 2e 3f 22 | 0d 69 66 20 74 68 65 20 |E&"...?"|.if the |
|00004260| 72 65 73 75 6c 74 20 ad | 20 65 6d 70 74 79 20 74 |result .| empty t|
|00004270| 68 65 6e 20 6e 65 78 74 | 20 72 65 70 65 61 74 20 |hen next| repeat |
|00004280| 20 2d 2d 20 65 78 69 74 | 20 74 6f 20 48 79 70 65 | -- exit| to Hype|
|00004290| 72 43 61 72 64 0d 73 65 | 74 20 63 75 72 73 6f 72 |rCard.se|t cursor|
|000042a0| 20 74 6f 20 77 61 74 63 | 68 0d 2d 2d 20 63 68 65 | to watc|h.-- che|
|000042b0| 63 6b 64 20 66 6f 72 20 | 6d 6f 72 65 20 74 68 61 |ckd for |more tha|
|000042c0| 6e 20 31 20 77 6f 72 64 | 0d 69 66 20 74 68 65 20 |n 1 word|.if the |
|000042d0| 6e 75 6d 62 65 72 20 6f | 66 20 77 6f 72 64 73 20 |number o|f words |
|000042e0| 69 6e 20 69 74 20 3e 20 | 31 20 74 68 65 6e 0d 70 |in it > |1 then.p|
|000042f0| 75 74 20 52 45 54 55 52 | 4e 26 22 41 20 6e 61 6d |ut RETUR|N&"A nam|
|00004300| 65 20 6d 75 73 74 20 62 | 65 20 31 20 77 6f 72 64 |e must b|e 1 word|
|00004310| 20 6f 6e 6c 79 21 22 20 | 61 66 74 65 72 20 73 74 | only!" |after st|
|00004320| 61 74 65 6d 65 6e 74 0d | 65 6e 64 20 69 66 0d 2d |atement.|end if.-|
|00004330| 2d 20 63 68 65 63 6b 73 | 20 66 6f 72 20 72 65 73 |- checks| for res|
|00004340| 74 72 69 63 74 65 64 20 | 57 4f 52 44 53 0d 70 75 |tricted |WORDS.pu|
|00004350| 74 20 66 6c 64 20 69 64 | 20 32 39 20 69 6e 74 6f |t fld id| 29 into|
|00004360| 20 72 65 73 74 72 69 63 | 74 65 64 57 6f 72 64 73 | restric|tedWords|
|00004370| 20 2d 2d 20 66 6c 64 20 | 22 57 69 6e 64 6f 77 73 | -- fld |"Windows|
|00004380| 22 0d 70 75 74 20 28 74 | 68 65 20 73 68 6f 72 74 |".put (t|he short|
|00004390| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 73 74 | name of| this st|
|000043a0| 61 63 6b 29 26 52 45 54 | 55 52 4e 20 61 66 74 65 |ack)&RET|URN afte|
|000043b0| 72 20 74 68 65 20 6c 61 | 73 74 20 6c 69 6e 65 20 |r the la|st line |
|000043c0| 6f 66 20 72 65 73 74 72 | 69 63 74 65 64 57 6f 72 |of restr|ictedWor|
|000043d0| 64 73 0d 64 65 6c 65 74 | 65 20 74 68 65 20 6c 61 |ds.delet|e the la|
|000043e0| 73 74 20 6c 69 6e 65 20 | 6f 66 20 72 65 73 74 72 |st line |of restr|
|000043f0| 69 63 74 65 64 57 6f 72 | 64 73 20 2d 2d 20 28 65 |ictedWor|ds -- (e|
|00004400| 78 74 72 61 20 72 65 74 | 75 72 6e 29 0d 72 65 70 |xtra ret|urn).rep|
|00004410| 65 61 74 20 77 69 74 68 | 20 63 6f 75 6e 74 65 72 |eat with| counter|
|00004420| 20 3d 20 31 20 74 6f 20 | 39 0d 69 66 20 69 74 20 | = 1 to |9.if it |
|00004430| 3d 20 6c 69 6e 65 20 63 | 6f 75 6e 74 65 72 20 6f |= line c|ounter o|
|00004440| 66 20 72 65 73 74 72 69 | 63 74 65 64 57 6f 72 64 |f restri|ctedWord|
|00004450| 73 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 54 |s then.a|nswer "T|
|00004460| 68 65 20 77 6f 72 64 20 | 22 26 51 55 4f 54 45 26 |he word |""E&|
|00004470| 69 74 26 51 55 4f 54 45 | 26 26 22 69 73 20 61 20 |it"E|&&"is a |
|00004480| 72 65 73 74 72 69 63 74 | 65 64 20 77 6f 72 64 21 |restrict|ed word!|
|00004490| 22 26 52 45 54 55 52 4e | 26 22 50 6c 65 61 73 65 |"&RETURN|&"Please|
|000044a0| 20 63 68 6f 6f 73 65 20 | 61 6e 6f 74 68 65 72 20 | choose |another |
|000044b0| 6e 61 6d 65 2e 22 0d 65 | 78 69 74 20 74 6f 20 48 |name.".e|xit to H|
|000044c0| 79 70 65 72 43 61 72 64 | 0d 65 6e 64 20 69 66 0d |yperCard|.end if.|
|000044d0| 65 6e 64 20 72 65 70 65 | 61 74 0d 2d 2d 20 43 48 |end repe|at.-- CH|
|000044e0| 45 43 4b 53 20 46 4f 52 | 20 49 4c 4c 45 47 41 4c |ECKS FOR| ILLEGAL|
|000044f0| 20 43 48 41 52 53 0d 70 | 75 74 20 65 6d 70 74 79 | CHARS.p|ut empty|
|00004500| 20 69 6e 74 6f 20 62 61 | 64 43 68 61 72 73 0d 70 | into ba|dChars.p|
|00004510| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 74 65 |ut empty| into te|
|00004520| 73 74 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 63 |st.repea|t with c|
|00004530| 6f 75 6e 74 65 72 20 3d | 20 31 20 74 6f 20 28 74 |ounter =| 1 to (t|
|00004540| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |he numbe|r of cha|
|00004550| 72 73 20 69 6e 20 69 74 | 29 0d 70 75 74 20 63 68 |rs in it|).put ch|
|00004560| 61 72 20 63 6f 75 6e 74 | 65 72 20 6f 66 20 69 74 |ar count|er of it|
|00004570| 20 69 6e 74 6f 20 74 65 | 73 74 43 68 61 72 0d 70 | into te|stChar.p|
|00004580| 75 74 20 63 68 61 72 54 | 6f 4e 75 6d 28 74 65 73 |ut charT|oNum(tes|
|00004590| 74 43 68 61 72 29 20 69 | 6e 74 6f 20 74 65 6d 70 |tChar) i|nto temp|
|000045a0| 43 68 61 72 0d 69 66 20 | 74 65 6d 70 43 68 61 72 |Char.if |tempChar|
|000045b0| 20 3e 3d 20 36 35 20 61 | 6e 64 20 74 65 6d 70 43 | >= 65 a|nd tempC|
|000045c0| 68 61 72 20 3c 3d 20 39 | 30 20 74 68 65 6e 20 70 |har <= 9|0 then p|
|000045d0| 75 74 20 30 20 69 6e 74 | 6f 20 74 65 73 74 20 65 |ut 0 int|o test e|
|000045e0| 6c 73 65 20 61 64 64 20 | 31 20 74 6f 20 74 65 73 |lse add |1 to tes|
|000045f0| 74 0d 69 66 20 74 65 6d | 70 43 68 61 72 20 3e 3d |t.if tem|pChar >=|
|00004600| 20 39 37 20 61 6e 64 20 | 74 65 6d 70 43 68 61 72 | 97 and |tempChar|
|00004610| 20 3c 3d 20 31 32 32 20 | 74 68 65 6e 20 70 75 74 | <= 122 |then put|
|00004620| 20 30 20 69 6e 74 6f 20 | 74 65 73 74 20 65 6c 73 | 0 into |test els|
|00004630| 65 20 61 64 64 20 31 20 | 74 6f 20 74 65 73 74 0d |e add 1 |to test.|
|00004640| 69 66 20 74 65 6d 70 43 | 68 61 72 20 3e 3d 20 34 |if tempC|har >= 4|
|00004650| 38 20 61 6e 64 20 74 65 | 6d 70 43 68 61 72 20 3c |8 and te|mpChar <|
|00004660| 3d 20 35 37 20 74 68 65 | 6e 20 70 75 74 20 30 20 |= 57 the|n put 0 |
|00004670| 69 6e 74 6f 20 74 65 73 | 74 20 65 6c 73 65 20 61 |into tes|t else a|
|00004680| 64 64 20 31 20 74 6f 20 | 74 65 73 74 0d 69 66 20 |dd 1 to |test.if |
|00004690| 74 65 73 74 20 3e 20 32 | 20 74 68 65 6e 0d 70 75 |test > 2| then.pu|
|000046a0| 74 20 22 20 22 26 51 55 | 4f 54 45 26 63 68 61 72 |t " "&QU|OTE&char|
|000046b0| 61 63 74 65 72 20 63 6f | 75 6e 74 65 72 20 6f 66 |acter co|unter of|
|000046c0| 20 69 74 26 51 55 4f 54 | 45 26 22 20 22 20 61 66 | it"|E&" " af|
|000046d0| 74 65 72 20 62 61 64 43 | 68 61 72 73 0d 65 6e 64 |ter badC|hars.end|
|000046e0| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 69 | if.end |repeat.i|
|000046f0| 66 20 62 61 64 43 68 61 | 72 73 20 ad 20 65 6d 70 |f badCha|rs . emp|
|00004700| 74 79 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 22 |ty then.|answer "|
|00004710| 54 68 65 20 43 68 61 72 | 61 63 74 65 72 28 73 29 |The Char|acter(s)|
|00004720| 20 22 26 62 61 64 43 68 | 61 72 73 26 22 20 61 72 | "&badCh|ars&" ar|
|00004730| 65 20 72 65 73 74 72 69 | 63 74 65 64 20 63 68 61 |e restri|cted cha|
|00004740| 72 61 63 74 65 72 73 21 | 22 0d 65 78 69 74 20 74 |racters!|".exit t|
|00004750| 6f 20 48 79 70 65 72 43 | 61 72 64 0d 65 6e 64 20 |o HyperC|ard.end |
|00004760| 69 66 0d 2d 2d 0d 69 66 | 20 74 68 65 20 6e 75 6d |if.--.if| the num|
|00004770| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 69 6e 20 |ber of c|hars in |
|00004780| 69 74 20 3e 20 31 30 20 | 74 68 65 6e 0d 70 75 74 |it > 10 |then.put|
|00004790| 20 52 45 54 55 52 4e 26 | 22 41 20 6e 61 6d 65 20 | RETURN&|"A name |
|000047a0| 6d 75 73 74 20 62 65 20 | 74 65 6e 20 63 68 61 72 |must be |ten char|
|000047b0| 61 63 74 65 72 73 20 6f | 72 20 6c 65 73 73 21 22 |acters o|r less!"|
|000047c0| 20 61 66 74 65 72 20 73 | 74 61 74 65 6d 65 6e 74 | after s|tatement|
|000047d0| 0d 65 6e 64 20 69 66 0d | 2d 2d 0d 70 75 74 20 69 |.end if.|--.put i|
|000047e0| 74 20 69 6e 74 6f 20 6e | 61 6d 65 43 68 6f 73 65 |t into n|ameChose|
|000047f0| 6e 0d 70 75 74 20 22 54 | 3d 41 6c 6c 22 20 69 6e |n.put "T|=All" in|
|00004800| 74 6f 20 54 79 70 65 0d | 70 75 74 20 22 4f 3d 54 |to Type.|put "O=T|
|00004810| 4e 49 22 20 69 6e 74 6f | 20 4f 75 74 70 75 74 0d |NI" into| Output.|
|00004820| 67 65 74 20 46 75 6c 6c | 52 65 73 4c 69 73 74 28 |get Full|ResList(|
|00004830| 54 79 70 65 2c 4f 75 74 | 70 75 74 29 0d 69 66 20 |Type,Out|put).if |
|00004840| 66 69 72 73 74 20 77 6f | 72 64 20 6f 66 20 69 74 |first wo|rd of it|
|00004850| 20 69 73 20 22 45 72 72 | 6f 72 22 20 20 74 68 65 | is "Err|or" the|
|00004860| 6e 0d 62 65 65 70 0d 61 | 6e 73 77 65 72 20 69 74 |n.beep.a|nswer it|
|00004870| 0d 65 78 69 74 20 74 6f | 20 48 79 70 65 72 43 61 |.exit to| HyperCa|
|00004880| 72 64 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 74 68 |rd.end i|f.put th|
|00004890| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |e number| of line|
|000048a0| 73 20 69 6e 20 69 74 20 | 69 6e 74 6f 20 6c 69 6e |s in it |into lin|
|000048b0| 65 49 6e 49 74 0d 72 65 | 70 65 61 74 20 77 69 74 |eInIt.re|peat wit|
|000048c0| 68 20 63 6f 75 6e 74 65 | 72 20 3d 20 31 20 74 6f |h counte|r = 1 to|
|000048d0| 20 6c 69 6e 65 49 6e 49 | 74 0d 69 66 20 6e 61 6d | lineInI|t.if nam|
|000048e0| 65 43 68 6f 73 65 6e 20 | 3d 20 69 74 65 6d 20 32 |eChosen |= item 2|
|000048f0| 20 6f 66 20 6c 69 6e 65 | 20 63 6f 75 6e 74 65 72 | of line| counter|
|00004900| 20 6f 66 20 69 74 20 74 | 68 65 6e 20 70 75 74 20 | of it t|hen put |
|00004910| 52 45 54 55 52 4e 26 22 | 54 68 61 74 20 6e 61 6d |RETURN&"|That nam|
|00004920| 65 20 69 73 20 61 6c 72 | 65 61 64 79 20 69 6e 20 |e is alr|eady in |
|00004930| 75 73 65 21 22 20 61 66 | 74 65 72 20 73 74 61 74 |use!" af|ter stat|
|00004940| 65 6d 65 6e 74 0d 65 6e | 64 20 72 65 70 65 61 74 |ement.en|d repeat|
|00004950| 0d 0d 69 66 20 73 74 61 | 74 65 6d 65 6e 74 20 ad |..if sta|tement .|
|00004960| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 61 6e 73 77 | empty t|hen.answ|
|00004970| 65 72 20 73 74 61 74 65 | 6d 65 6e 74 0d 65 78 69 |er state|ment.exi|
|00004980| 74 20 74 6f 20 48 79 70 | 65 72 43 61 72 64 0d 65 |t to Hyp|erCard.e|
|00004990| 6e 64 20 69 66 0d 2d 2d | 0d 70 75 74 20 6e 61 6d |nd if.--|.put nam|
|000049a0| 65 43 68 6f 73 65 6e 20 | 69 6e 74 6f 20 6e 65 77 |eChosen |into new|
|000049b0| 4e 61 6d 65 0d 70 75 74 | 20 28 74 68 65 20 6c 6f |Name.put| (the lo|
|000049c0| 6e 67 20 6e 61 6d 65 20 | 6f 66 20 74 68 69 73 20 |ng name |of this |
|000049d0| 73 74 61 63 6b 29 20 69 | 6e 74 6f 20 73 74 61 63 |stack) i|nto stac|
|000049e0| 6b 4e 61 6d 65 0d 67 65 | 74 20 52 65 6e 61 6d 65 |kName.ge|t Rename|
|000049f0| 52 65 73 28 73 74 61 63 | 6b 4e 61 6d 65 2c 52 65 |Res(stac|kName,Re|
|00004a00| 73 6f 75 72 63 65 49 64 | 2c 74 68 65 52 65 73 6f |sourceId|,theReso|
|00004a10| 75 72 63 65 2c 52 65 73 | 65 72 2c 6e 65 77 4e 61 |urce,Res|er,newNa|
|00004a20| 6d 65 29 0d 2d 2d 0d 2d | 2d 20 63 68 65 63 6b 73 |me).--.-|- checks|
|00004a30| 20 66 6f 72 20 72 65 73 | 6f 75 72 63 65 20 69 6e | for res|ource in|
|00004a40| 20 58 54 6f 6f 6c 73 20 | 6c 69 73 74 0d 69 66 20 | XTools |list.if |
|00004a50| 66 6c 64 20 69 64 20 33 | 31 20 ad 20 65 6d 70 74 |fld id 3|1 . empt|
|00004a60| 79 20 74 68 65 6e 20 2d | 2d 20 66 6c 64 20 69 64 |y then -|- fld id|
|00004a70| 20 33 31 20 69 73 20 68 | 6f 6c 64 65 72 20 6f 66 | 31 is h|older of|
|00004a80| 20 72 65 73 6f 75 72 63 | 65 73 20 73 65 6c 65 63 | resourc|es selec|
|00004a90| 74 65 64 20 69 6e 20 58 | 54 6f 6f 6c 73 0d 70 75 |ted in X|Tools.pu|
|00004aa0| 74 20 66 6c 64 20 69 64 | 20 33 31 20 69 6e 74 6f |t fld id| 31 into|
|00004ab0| 20 58 54 6f 6f 6c 73 52 | 65 73 0d 70 75 74 20 74 | XToolsR|es.put t|
|00004ac0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|00004ad0| 65 73 20 69 6e 20 58 54 | 6f 6f 6c 73 52 65 73 20 |es in XT|oolsRes |
|00004ae0| 69 6e 74 6f 20 4e 75 6d | 62 65 72 58 54 6f 6f 6c |into Num|berXTool|
|00004af0| 73 52 65 73 0d 72 65 70 | 65 61 74 20 77 69 74 68 |sRes.rep|eat with|
|00004b00| 20 44 6f 75 6e 74 65 72 | 20 3d 20 31 20 74 6f 20 | Dounter| = 1 to |
|00004b10| 4e 75 6d 62 65 72 58 54 | 6f 6f 6c 73 52 65 73 0d |NumberXT|oolsRes.|
|00004b20| 69 66 20 52 65 73 65 72 | 20 3d 20 69 74 65 6d 20 |if Reser| = item |
|00004b30| 33 20 6f 66 20 6c 69 6e | 65 20 44 6f 75 6e 74 65 |3 of lin|e Dounte|
|00004b40| 72 20 6f 66 20 58 54 6f | 6f 6c 73 52 65 73 20 74 |r of XTo|olsRes t|
|00004b50| 68 65 6e 0d 70 75 74 20 | 6e 65 77 4e 61 6d 65 20 |hen.put |newName |
|00004b60| 69 6e 74 6f 20 69 74 65 | 6d 20 33 20 6f 66 20 6c |into ite|m 3 of l|
|00004b70| 69 6e 65 20 44 6f 75 6e | 74 65 72 20 6f 66 20 58 |ine Doun|ter of X|
|00004b80| 54 6f 6f 6c 73 52 65 73 | 0d 65 6e 64 20 69 66 0d |ToolsRes|.end if.|
|00004b90| 65 6e 64 20 72 65 70 65 | 61 74 0d 70 75 74 20 58 |end repe|at.put X|
|00004ba0| 54 6f 6f 6c 73 52 65 73 | 20 69 6e 74 6f 20 66 6c |ToolsRes| into fl|
|00004bb0| 64 20 69 64 20 33 31 0d | 73 6f 72 74 20 66 6c 64 |d id 31.|sort fld|
|00004bc0| 20 69 64 20 33 31 0d 65 | 6e 64 20 69 66 0d 2d 2d | id 31.e|nd if.--|
|00004bd0| 0d 70 75 74 20 66 6c 64 | 20 69 64 20 35 20 69 6e |.put fld| id 5 in|
|00004be0| 74 6f 20 61 6c 74 65 72 | 6e 61 74 65 57 69 6e 64 |to alter|nateWind|
|00004bf0| 6f 77 73 0d 69 66 20 61 | 6c 74 65 72 6e 61 74 65 |ows.if a|lternate|
|00004c00| 57 69 6e 64 6f 77 73 20 | ad 20 65 6d 70 74 79 20 |Windows |. empty |
|00004c10| 74 68 65 6e 0d 72 65 70 | 65 61 74 20 77 69 74 68 |then.rep|eat with|
|00004c20| 20 63 6f 75 6e 74 65 72 | 20 3d 20 31 20 74 6f 20 | counter| = 1 to |
|00004c30| 28 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c |(the num|ber of l|
|00004c40| 69 6e 65 73 20 69 6e 20 | 61 6c 74 65 72 6e 61 74 |ines in |alternat|
|00004c50| 65 57 69 6e 64 6f 77 73 | 29 0d 69 66 20 69 74 65 |eWindows|).if ite|
|00004c60| 6d 20 31 20 6f 66 20 6c | 69 6e 65 20 63 6f 75 6e |m 1 of l|ine coun|
|00004c70| 74 65 72 20 6f 66 20 61 | 6c 74 65 72 6e 61 74 65 |ter of a|lternate|
|00004c80| 57 69 6e 64 6f 77 73 20 | 3d 20 52 65 73 65 72 20 |Windows |= Reser |
|00004c90| 74 68 65 6e 0d 70 75 74 | 20 6e 65 77 4e 61 6d 65 |then.put| newName|
|00004ca0| 20 69 6e 74 6f 20 69 74 | 65 6d 20 31 20 6f 66 20 | into it|em 1 of |
|00004cb0| 6c 69 6e 65 20 63 6f 75 | 6e 74 65 72 20 6f 66 20 |line cou|nter of |
|00004cc0| 61 6c 74 65 72 6e 61 74 | 65 57 69 6e 64 6f 77 73 |alternat|eWindows|
|00004cd0| 0d 70 75 74 20 61 6c 74 | 65 72 6e 61 74 65 57 69 |.put alt|ernateWi|
|00004ce0| 6e 64 6f 77 73 20 69 6e | 74 6f 20 66 6c 64 20 69 |ndows in|to fld i|
|00004cf0| 64 20 35 0d 65 78 69 74 | 20 72 65 70 65 61 74 0d |d 5.exit| repeat.|
|00004d00| 65 6e 64 20 69 66 0d 65 | 6e 64 20 72 65 70 65 61 |end if.e|nd repea|
|00004d10| 74 0d 65 6e 64 20 69 66 | 0d 64 6f 4d 65 6e 75 20 |t.end if|.doMenu |
|00004d20| 22 43 6f 6d 70 61 63 74 | 20 53 74 61 63 6b 22 0d |"Compact| Stack".|
|00004d30| 72 65 70 65 61 74 20 77 | 69 74 68 20 63 6f 75 6e |repeat w|ith coun|
|00004d40| 74 65 72 20 3d 20 31 20 | 74 6f 20 6e 75 6d 62 65 |ter = 1 |to numbe|
|00004d50| 72 4f 66 57 69 6e 64 6f | 77 73 0d 69 66 20 52 65 |rOfWindo|ws.if Re|
|00004d60| 73 65 72 20 3d 20 6c 69 | 6e 65 20 63 6f 75 6e 74 |ser = li|ne count|
|00004d70| 65 72 20 6f 66 20 77 69 | 6e 64 6f 77 73 4f 70 65 |er of wi|ndowsOpe|
|00004d80| 6e 20 74 68 65 6e 0d 63 | 6c 6f 73 65 20 77 69 6e |n then.c|lose win|
|00004d90| 64 6f 77 20 52 65 73 65 | 72 0d 4e 45 58 54 20 52 |dow Rese|r.NEXT R|
|00004da0| 45 50 45 41 54 0d 65 6e | 64 20 69 66 0d 65 6e 64 |EPEAT.en|d if.end|
|00004db0| 20 72 65 70 65 61 74 0d | 69 66 20 77 69 6e 64 6f | repeat.|if windo|
|00004dc0| 77 45 78 69 73 74 73 20 | 3d 20 30 20 74 68 65 6e |wExists |= 0 then|
|00004dd0| 0d 70 75 74 20 66 6c 64 | 20 69 64 20 35 20 69 6e |.put fld| id 5 in|
|00004de0| 74 6f 20 61 6c 74 65 72 | 6e 61 74 65 57 69 6e 64 |to alter|nateWind|
|00004df0| 6f 77 73 0d 69 66 20 61 | 6c 74 65 72 6e 61 74 65 |ows.if a|lternate|
|00004e00| 57 69 6e 64 6f 77 73 20 | ad 20 65 6d 70 74 79 20 |Windows |. empty |
|00004e10| 74 68 65 6e 0d 72 65 70 | 65 61 74 20 77 69 74 68 |then.rep|eat with|
|00004e20| 20 63 6f 75 6e 74 65 72 | 20 3d 20 31 20 74 6f 20 | counter| = 1 to |
|00004e30| 28 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c |(the num|ber of l|
|00004e40| 69 6e 65 73 20 69 6e 20 | 61 6c 74 65 72 6e 61 74 |ines in |alternat|
|00004e50| 65 57 69 6e 64 6f 77 73 | 29 0d 69 66 20 69 74 65 |eWindows|).if ite|
|00004e60| 6d 20 31 20 6f 66 20 6c | 69 6e 65 20 63 6f 75 6e |m 1 of l|ine coun|
|00004e70| 74 65 72 20 6f 66 20 61 | 6c 74 65 72 6e 61 74 65 |ter of a|lternate|
|00004e80| 57 69 6e 64 6f 77 73 20 | 3d 20 6e 65 77 4e 61 6d |Windows |= newNam|
|00004e90| 65 20 74 68 65 6e 0d 70 | 75 74 20 69 74 65 6d 20 |e then.p|ut item |
|00004ea0| 32 20 6f 66 20 6c 69 6e | 65 20 63 6f 75 6e 74 65 |2 of lin|e counte|
|00004eb0| 72 20 6f 66 20 61 6c 74 | 65 72 6e 61 74 65 57 69 |r of alt|ernateWi|
|00004ec0| 6e 64 6f 77 73 20 69 6e | 74 6f 20 73 74 79 6c 65 |ndows in|to style|
|00004ed0| 0d 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 |.exit re|peat.end|
|00004ee0| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 | if.end |repeat.e|
|00004ef0| 6e 64 20 69 66 0d 0d 69 | 66 20 73 74 79 6c 65 20 |nd if..i|f style |
|00004f00| 3d 20 65 6d 70 74 79 20 | 74 68 65 6e 20 70 75 74 |= empty |then put|
|00004f10| 20 22 7a 6f 6f 6d 22 20 | 69 6e 74 6f 20 73 74 79 | "zoom" |into sty|
|00004f20| 6c 65 0d 70 69 63 74 75 | 72 65 20 6e 65 77 4e 61 |le.pictu|re newNa|
|00004f30| 6d 65 2c 20 72 65 73 6f | 75 72 63 65 2c 20 73 74 |me, reso|urce, st|
|00004f40| 79 6c 65 0d 70 75 74 20 | 65 6d 70 74 79 20 69 6e |yle.put |empty in|
|00004f50| 74 6f 20 73 74 79 6c 65 | 0d 65 6e 64 20 69 66 0d |to style|.end if.|
|00004f60| 69 66 20 22 57 69 6e 64 | 6f 77 73 22 20 69 73 20 |if "Wind|ows" is |
|00004f70| 69 6e 20 74 68 65 20 6d | 65 6e 75 73 20 74 68 65 |in the m|enus the|
|00004f80| 6e 0d 67 65 74 20 74 68 | 65 20 73 68 6f 72 74 20 |n.get th|e short |
|00004f90| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 62 67 0d |name of |this bg.|
|00004fa0| 73 75 62 74 72 61 63 74 | 20 31 20 66 72 6f 6d 20 |subtract| 1 from |
|00004fb0| 69 74 0d 73 65 74 20 74 | 68 65 20 6e 61 6d 65 20 |it.set t|he name |
|00004fc0| 6f 66 20 74 68 69 73 20 | 62 67 20 74 6f 20 69 74 |of this |bg to it|
|00004fd0| 0d 72 65 70 65 61 74 20 | 75 6e 74 69 6c 20 74 68 |.repeat |until th|
|00004fe0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6d 65 6e 75 |e number| of menu|
|00004ff0| 69 74 65 6d 73 20 6f 66 | 20 6d 65 6e 75 20 22 57 |items of| menu "W|
|00005000| 69 6e 64 6f 77 73 22 20 | 3d 20 33 0d 64 65 6c 65 |indows" |= 3.dele|
|00005010| 74 65 20 6d 65 6e 75 49 | 74 65 6d 20 34 20 6f 66 |te menuI|tem 4 of|
|00005020| 20 6d 65 6e 75 20 22 57 | 69 6e 64 6f 77 73 22 0d | menu "W|indows".|
|00005030| 65 6e 64 20 72 65 70 65 | 61 74 0d 73 65 6e 64 20 |end repe|at.send |
|00005040| 22 77 69 6e 64 6f 77 54 | 6f 6f 6c 73 22 20 74 6f |"windowT|ools" to|
|00005050| 20 74 68 69 73 20 62 67 | 0d 65 6e 64 20 69 66 0d | this bg|.end if.|
|00005060| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 72 |end repe|at.end r|
|00005070| 65 6e 61 6d 65 52 65 73 | 6f 75 72 63 65 73 0d 0d |enameRes|ources..|
|00005080| 6f 6e 20 64 69 73 70 6c | 61 79 52 65 73 6f 75 72 |on displ|ayResour|
|00005090| 63 65 73 20 72 65 73 6f | 75 72 63 65 73 53 65 6c |ces reso|urcesSel|
|000050a0| 65 63 74 65 64 0d 72 65 | 70 65 61 74 20 77 69 74 |ected.re|peat wit|
|000050b0| 68 20 63 6f 75 6e 74 65 | 72 20 3d 20 31 20 74 6f |h counte|r = 1 to|
|000050c0| 20 28 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | (the nu|mber of |
|000050d0| 6c 69 6e 65 73 20 69 6e | 20 72 65 73 6f 75 72 63 |lines in| resourc|
|000050e0| 65 73 53 65 6c 65 63 74 | 65 64 29 0d 70 75 74 20 |esSelect|ed).put |
|000050f0| 69 74 65 6d 20 32 20 6f | 66 20 6c 69 6e 65 20 63 |item 2 o|f line c|
|00005100| 6f 75 6e 74 65 72 20 6f | 66 20 72 65 73 6f 75 72 |ounter o|f resour|
|00005110| 63 65 73 53 65 6c 65 63 | 74 65 64 20 69 6e 74 6f |cesSelec|ted into|
|00005120| 20 52 65 73 65 72 0d 70 | 75 74 20 69 74 65 6d 20 | Reser.p|ut item |
|00005130| 31 20 6f 66 20 6c 69 6e | 65 20 63 6f 75 6e 74 65 |1 of lin|e counte|
|00005140| 72 20 6f 66 20 72 65 73 | 6f 75 72 63 65 73 53 65 |r of res|ourcesSe|
|00005150| 6c 65 63 74 65 64 20 69 | 6e 74 6f 20 74 68 65 52 |lected i|nto theR|
|00005160| 65 73 6f 75 72 63 65 0d | 70 75 74 20 30 20 69 6e |esource.|put 0 in|
|00005170| 74 6f 20 77 69 6e 64 6f | 77 45 78 69 73 74 73 0d |to windo|wExists.|
|00005180| 69 66 20 74 68 65 52 65 | 73 6f 75 72 63 65 20 3d |if theRe|source =|
|00005190| 20 22 73 6e 64 20 22 20 | 74 68 65 6e 0d 70 6c 61 | "snd " |then.pla|
|000051a0| 79 20 52 65 73 65 72 0d | 65 6e 64 20 69 66 0d 69 |y Reser.|end if.i|
|000051b0| 66 20 74 68 65 52 65 73 | 6f 75 72 63 65 20 3d 20 |f theRes|ource = |
|000051c0| 22 50 49 43 54 22 20 74 | 68 65 6e 0d 70 75 74 20 |"PICT" t|hen.put |
|000051d0| 74 68 65 20 77 69 6e 64 | 6f 77 73 20 69 6e 74 6f |the wind|ows into|
|000051e0| 20 77 69 6e 64 6f 77 73 | 4f 70 65 6e 0d 70 75 74 | windows|Open.put|
|000051f0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|00005200| 69 6e 65 73 20 69 6e 20 | 74 68 65 20 77 69 6e 64 |ines in |the wind|
|00005210| 6f 77 73 20 69 6e 74 6f | 20 6e 75 6d 62 65 72 4f |ows into| numberO|
|00005220| 66 57 69 6e 64 6f 77 73 | 0d 72 65 70 65 61 74 20 |fWindows|.repeat |
|00005230| 77 69 74 68 20 63 6f 75 | 6e 74 65 72 20 3d 20 31 |with cou|nter = 1|
|00005240| 20 74 6f 20 6e 75 6d 62 | 65 72 4f 66 57 69 6e 64 | to numb|erOfWind|
|00005250| 6f 77 73 0d 69 66 20 52 | 65 73 65 72 20 3d 20 6c |ows.if R|eser = l|
|00005260| 69 6e 65 20 63 6f 75 6e | 74 65 72 20 6f 66 20 77 |ine coun|ter of w|
|00005270| 69 6e 64 6f 77 73 4f 70 | 65 6e 20 74 68 65 6e 0d |indowsOp|en then.|
|00005280| 61 6e 73 77 65 72 20 28 | 6c 69 6e 65 20 63 6f 75 |answer (|line cou|
|00005290| 6e 74 65 72 20 6f 66 20 | 77 69 6e 64 6f 77 73 4f |nter of |windowsO|
|000052a0| 70 65 6e 29 26 52 45 54 | 55 52 4e 26 22 20 61 6c |pen)&RET|URN&" al|
|000052b0| 72 65 61 64 79 20 65 78 | 69 73 74 73 21 22 26 52 |ready ex|ists!"&R|
|000052c0| 45 54 55 52 4e 26 c2 0d | 22 43 68 65 63 6b 20 74 |ETURN&..|"Check t|
|000052d0| 68 65 20 57 69 6e 64 6f | 77 73 20 6d 65 6e 75 21 |he Windo|ws menu!|
|000052e0| 22 0d 70 75 74 20 31 20 | 69 6e 74 6f 20 77 69 6e |".put 1 |into win|
|000052f0| 64 6f 77 45 78 69 73 74 | 73 0d 4e 45 58 54 20 52 |dowExist|s.NEXT R|
|00005300| 45 50 45 41 54 0d 65 6e | 64 20 69 66 0d 65 6e 64 |EPEAT.en|d if.end|
|00005310| 20 72 65 70 65 61 74 0d | 0d 69 66 20 77 69 6e 64 | repeat.|.if wind|
|00005320| 6f 77 45 78 69 73 74 73 | 20 3d 20 30 20 74 68 65 |owExists| = 0 the|
|00005330| 6e 0d 70 75 74 20 66 6c | 64 20 69 64 20 35 20 69 |n.put fl|d id 5 i|
|00005340| 6e 74 6f 20 61 6c 74 65 | 72 6e 61 74 65 57 69 6e |nto alte|rnateWin|
|00005350| 64 6f 77 73 0d 69 66 20 | 61 6c 74 65 72 6e 61 74 |dows.if |alternat|
|00005360| 65 57 69 6e 64 6f 77 73 | 20 ad 20 65 6d 70 74 79 |eWindows| . empty|
|00005370| 20 74 68 65 6e 0d 72 65 | 70 65 61 74 20 77 69 74 | then.re|peat wit|
|00005380| 68 20 63 6f 75 6e 74 65 | 72 20 3d 20 31 20 74 6f |h counte|r = 1 to|
|00005390| 20 28 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | (the nu|mber of |
|000053a0| 6c 69 6e 65 73 20 69 6e | 20 61 6c 74 65 72 6e 61 |lines in| alterna|
|000053b0| 74 65 57 69 6e 64 6f 77 | 73 29 0d 69 66 20 69 74 |teWindow|s).if it|
|000053c0| 65 6d 20 31 20 6f 66 20 | 6c 69 6e 65 20 63 6f 75 |em 1 of |line cou|
|000053d0| 6e 74 65 72 20 6f 66 20 | 61 6c 74 65 72 6e 61 74 |nter of |alternat|
|000053e0| 65 57 69 6e 64 6f 77 73 | 20 3d 20 52 65 73 65 72 |eWindows| = Reser|
|000053f0| 20 74 68 65 6e 0d 70 75 | 74 20 69 74 65 6d 20 32 | then.pu|t item 2|
|00005400| 20 6f 66 20 6c 69 6e 65 | 20 63 6f 75 6e 74 65 72 | of line| counter|
|00005410| 20 6f 66 20 61 6c 74 65 | 72 6e 61 74 65 57 69 6e | of alte|rnateWin|
|00005420| 64 6f 77 73 20 69 6e 74 | 6f 20 73 74 79 6c 65 0d |dows int|o style.|
|00005430| 65 78 69 74 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |exit rep|eat.end |
|00005440| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |if.end r|epeat.en|
|00005450| 64 20 69 66 0d 0d 69 66 | 20 73 74 79 6c 65 20 3d |d if..if| style =|
|00005460| 20 65 6d 70 74 79 20 74 | 68 65 6e 20 70 75 74 20 | empty t|hen put |
|00005470| 22 7a 6f 6f 6d 22 20 69 | 6e 74 6f 20 73 74 79 6c |"zoom" i|nto styl|
|00005480| 65 0d 70 69 63 74 75 72 | 65 20 52 65 73 65 72 2c |e.pictur|e Reser,|
|00005490| 20 72 65 73 6f 75 72 63 | 65 2c 20 73 74 79 6c 65 | resourc|e, style|
|000054a0| 0d 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 |.put emp|ty into |
|000054b0| 73 74 79 6c 65 0d 65 6e | 64 20 69 66 0d 65 6e 64 |style.en|d if.end|
|000054c0| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 | if.end |repeat.e|
|000054d0| 6e 64 20 64 69 73 70 6c | 61 79 52 65 73 6f 75 72 |nd displ|ayResour|
|000054e0| 63 65 73 0d 0d 6f 6e 20 | 6c 69 73 74 52 65 73 6f |ces..on |listReso|
|000054f0| 75 72 63 65 73 0d 67 6c | 6f 62 61 6c 20 4f 75 74 |urces.gl|obal Out|
|00005500| 73 69 64 65 53 74 61 63 | 6b 0d 73 65 74 20 63 75 |sideStac|k.set cu|
|00005510| 72 73 6f 72 20 74 6f 20 | 77 61 74 63 68 0d 70 75 |rsor to |watch.pu|
|00005520| 74 20 22 50 49 43 54 2c | 73 6e 64 20 22 20 69 6e |t "PICT,|snd " in|
|00005530| 74 6f 20 69 74 0d 69 66 | 20 69 74 20 ad 20 65 6d |to it.if| it . em|
|00005540| 70 74 79 0d 74 68 65 6e | 20 70 75 74 20 22 54 3d |pty.then| put "T=|
|00005550| 22 20 26 20 69 74 20 69 | 6e 74 6f 20 54 79 70 65 |" & it i|nto Type|
|00005560| 0d 65 6c 73 65 20 70 75 | 74 20 22 54 3d 41 4c 4c |.else pu|t "T=ALL|
|00005570| 22 20 69 6e 74 6f 20 54 | 79 70 65 0d 0d 70 75 74 |" into T|ype..put|
|00005580| 20 22 54 4e 49 22 20 69 | 6e 74 6f 20 69 74 0d 69 | "TNI" i|nto it.i|
|00005590| 66 20 69 74 20 ad 20 65 | 6d 70 74 79 0d 74 68 65 |f it . e|mpty.the|
|000055a0| 6e 20 70 75 74 20 22 4f | 3d 22 20 26 20 69 74 20 |n put "O|=" & it |
|000055b0| 69 6e 74 6f 20 4f 75 74 | 70 75 74 0d 65 6c 73 65 |into Out|put.else|
|000055c0| 20 70 75 74 20 22 4f 3d | 54 4e 49 22 20 69 6e 74 | put "O=|TNI" int|
|000055d0| 6f 20 4f 75 74 70 75 74 | 0d 0d 69 66 20 6f 75 74 |o Output|..if out|
|000055e0| 73 69 64 65 53 74 61 63 | 6b 20 ad 20 65 6d 70 74 |sideStac|k . empt|
|000055f0| 79 20 74 68 65 6e 0d 70 | 75 74 20 6f 75 74 73 69 |y then.p|ut outsi|
|00005600| 64 65 53 74 61 63 6b 20 | 69 6e 74 6f 20 69 74 0d |deStack |into it.|
|00005610| 67 65 74 20 46 75 6c 6c | 52 65 73 4c 69 73 74 28 |get Full|ResList(|
|00005620| 54 79 70 65 2c 4f 75 74 | 70 75 74 2c 22 57 3d 22 |Type,Out|put,"W="|
|00005630| 20 26 20 69 74 29 0d 65 | 6c 73 65 0d 67 65 74 20 | & it).e|lse.get |
|00005640| 46 75 6c 6c 52 65 73 4c | 69 73 74 28 54 79 70 65 |FullResL|ist(Type|
|00005650| 2c 4f 75 74 70 75 74 29 | 0d 65 6e 64 20 69 66 0d |,Output)|.end if.|
|00005660| 69 66 20 66 69 72 73 74 | 20 77 6f 72 64 20 6f 66 |if first| word of|
|00005670| 20 69 74 20 69 73 20 22 | 45 72 72 6f 72 22 0d 74 | it is "|Error".t|
|00005680| 68 65 6e 0d 62 65 65 70 | 0d 61 6e 73 77 65 72 20 |hen.beep|.answer |
|00005690| 69 74 0d 65 78 69 74 20 | 74 6f 20 48 79 70 65 72 |it.exit |to Hyper|
|000056a0| 43 61 72 64 0d 65 6c 73 | 65 0d 58 48 6f 6d 65 52 |Card.els|e.XHomeR|
|000056b0| 65 73 6f 75 72 63 65 73 | 20 69 74 0d 67 6c 6f 62 |esources| it.glob|
|000056c0| 61 6c 20 61 6c 6c 52 65 | 73 0d 69 66 20 61 6c 6c |al allRe|s.if all|
|000056d0| 52 65 73 20 3d 20 65 6d | 70 74 79 20 74 68 65 6e |Res = em|pty then|
|000056e0| 0d 62 65 65 70 0d 61 6e | 73 77 65 72 20 22 4e 6f |.beep.an|swer "No|
|000056f0| 20 52 65 73 6f 75 72 63 | 65 73 20 49 6e 20 74 68 | Resourc|es In th|
|00005700| 65 20 73 74 61 63 6b 21 | 22 0d 65 78 69 74 20 74 |e stack!|".exit t|
|00005710| 6f 20 48 79 70 65 72 43 | 61 72 64 0d 65 6e 64 20 |o HyperC|ard.end |
|00005720| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 6c 69 |if.end i|f.end li|
|00005730| 73 74 52 65 73 6f 75 72 | 63 65 73 0d 0d 6f 6e 20 |stResour|ces..on |
|00005740| 65 72 61 73 65 52 65 73 | 6f 75 72 63 65 73 20 72 |eraseRes|ources r|
|00005750| 65 73 6f 75 72 63 65 73 | 53 65 6c 65 63 74 65 64 |esources|Selected|
|00005760| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 77 |.set cur|sor to w|
|00005770| 61 74 63 68 0d 2d 2d 20 | 76 77 0d 70 75 74 20 74 |atch.-- |vw.put t|
|00005780| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|00005790| 65 73 20 69 6e 20 72 65 | 73 6f 75 72 63 65 73 53 |es in re|sourcesS|
|000057a0| 65 6c 65 63 74 65 64 20 | 69 6e 74 6f 20 6e 75 6d |elected |into num|
|000057b0| 62 65 72 4f 66 52 65 73 | 0d 69 66 20 66 6c 64 20 |berOfRes|.if fld |
|000057c0| 69 64 20 33 31 20 ad 20 | 65 6d 70 74 79 20 74 68 |id 31 . |empty th|
|000057d0| 65 6e 20 2d 2d 20 66 6c | 64 20 69 64 20 33 31 20 |en -- fl|d id 31 |
|000057e0| 69 73 20 68 6f 6c 64 65 | 72 20 6f 66 20 72 65 73 |is holde|r of res|
|000057f0| 6f 75 72 63 65 73 20 73 | 65 6c 65 63 74 65 64 20 |ources s|elected |
|00005800| 69 6e 20 58 54 6f 6f 6c | 73 0d 70 75 74 20 72 65 |in XTool|s.put re|
|00005810| 73 6f 75 72 63 65 73 53 | 65 6c 65 63 74 65 64 20 |sourcesS|elected |
|00005820| 69 6e 74 6f 20 74 65 6d | 70 52 65 73 53 65 6c 0d |into tem|pResSel.|
|00005830| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 75 |put empt|y into u|
|00005840| 73 65 64 52 65 73 0d 70 | 75 74 20 66 6c 64 20 69 |sedRes.p|ut fld i|
|00005850| 64 20 33 31 20 69 6e 74 | 6f 20 58 54 6f 6f 6c 73 |d 31 int|o XTools|
|00005860| 52 65 73 0d 70 75 74 20 | 74 68 65 20 6e 75 6d 62 |Res.put |the numb|
|00005870| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 66 |er of li|nes in f|
|00005880| 6c 64 20 69 64 20 33 31 | 20 69 6e 74 6f 20 4e 75 |ld id 31| into Nu|
|00005890| 6d 62 65 72 58 54 6f 6f | 6c 73 52 65 73 0d 72 65 |mberXToo|lsRes.re|
|000058a0| 70 65 61 74 20 77 69 74 | 68 20 63 6f 75 6e 74 65 |peat wit|h counte|
|000058b0| 72 20 3d 20 6e 75 6d 62 | 65 72 4f 66 52 65 73 20 |r = numb|erOfRes |
|000058c0| 64 6f 77 6e 20 74 6f 20 | 31 0d 72 65 70 65 61 74 |down to |1.repeat|
|000058d0| 20 77 69 74 68 20 44 6f | 75 6e 74 65 72 20 3d 20 | with Do|unter = |
|000058e0| 31 20 74 6f 20 4e 75 6d | 62 65 72 58 54 6f 6f 6c |1 to Num|berXTool|
|000058f0| 73 52 65 73 0d 69 66 20 | 69 74 65 6d 20 32 20 6f |sRes.if |item 2 o|
|00005900| 66 20 6c 69 6e 65 20 63 | 6f 75 6e 74 65 72 20 6f |f line c|ounter o|
|00005910| 66 20 74 65 6d 70 52 65 | 73 53 65 6c 20 3d 20 69 |f tempRe|sSel = i|
|00005920| 74 65 6d 20 33 20 6f 66 | 20 6c 69 6e 65 20 44 6f |tem 3 of| line Do|
|00005930| 75 6e 74 65 72 20 6f 66 | 20 58 54 6f 6f 6c 73 52 |unter of| XToolsR|
|00005940| 65 73 20 74 68 65 6e 0d | 70 75 74 20 28 69 74 65 |es then.|put (ite|
|00005950| 6d 20 32 20 6f 66 20 6c | 69 6e 65 20 63 6f 75 6e |m 2 of l|ine coun|
|00005960| 74 65 72 20 6f 66 20 74 | 65 6d 70 52 65 73 53 65 |ter of t|empResSe|
|00005970| 6c 29 26 22 20 22 20 61 | 66 74 65 72 20 75 73 65 |l)&" " a|fter use|
|00005980| 64 52 65 73 0d 64 65 6c | 65 74 65 20 6c 69 6e 65 |dRes.del|ete line|
|00005990| 20 63 6f 75 6e 74 65 72 | 20 6f 66 20 74 65 6d 70 | counter| of temp|
|000059a0| 52 65 73 53 65 6c 0d 6e | 65 78 74 20 72 65 70 65 |ResSel.n|ext repe|
|000059b0| 61 74 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 72 65 |at.end i|f.end re|
|000059c0| 70 65 61 74 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |peat.end| repeat.|
|000059d0| 62 65 65 70 0d 61 6e 73 | 77 65 72 20 22 52 65 73 |beep.ans|wer "Res|
|000059e0| 6f 75 72 63 65 28 73 29 | 20 69 6e 20 75 73 65 20 |ource(s)| in use |
|000059f0| 62 79 20 58 54 6f 6f 6c | 73 2e 2e 2e 22 26 52 45 |by XTool|s..."&RE|
|00005a00| 54 55 52 4e 26 75 73 65 | 64 52 65 73 26 52 45 54 |TURN&use|dRes&RET|
|00005a10| 55 52 4e 26 c2 0d 22 44 | 65 6c 65 74 65 20 74 68 |URN&.."D|elete th|
|00005a20| 65 6d 20 66 72 6f 6d 20 | 74 68 65 20 58 54 6f 6f |em from |the XToo|
|00005a30| 6c 73 20 6c 69 73 74 20 | 66 69 72 73 74 21 22 0d |ls list |first!".|
|00005a40| 65 78 69 74 20 74 6f 20 | 48 79 70 65 72 43 61 72 |exit to |HyperCar|
|00005a50| 64 0d 65 6e 64 20 69 66 | 0d 69 66 20 6e 75 6d 62 |d.end if|.if numb|
|00005a60| 65 72 4f 66 52 65 73 20 | 3e 20 31 20 74 68 65 6e |erOfRes |> 1 then|
|00005a70| 0d 61 6e 73 77 65 72 20 | 22 54 68 69 73 20 77 69 |.answer |"This wi|
|00005a80| 6c 6c 20 45 72 61 73 65 | 20 22 26 6e 75 6d 62 65 |ll Erase| "&numbe|
|00005a90| 72 4f 66 52 65 73 26 22 | 20 52 65 73 6f 75 72 63 |rOfRes&"| Resourc|
|00005aa0| 65 73 2e 2e 2e 22 26 52 | 45 54 55 52 4e 26 22 59 |es..."&R|ETURN&"Y|
|00005ab0| 4f 55 20 68 61 76 65 20 | 61 64 64 65 64 20 74 6f |OU have |added to|
|00005ac0| 20 58 48 6f 6d 65 21 22 | 20 77 69 74 68 20 22 4f | XHome!"| with "O|
|00005ad0| 4b 22 20 6f 72 20 22 43 | 61 6e 63 65 6c 22 0d 69 |K" or "C|ancel".i|
|00005ae0| 66 20 69 74 20 69 73 20 | 22 43 61 6e 63 65 6c 22 |f it is |"Cancel"|
|00005af0| 20 74 68 65 6e 20 65 78 | 69 74 20 74 6f 20 48 79 | then ex|it to Hy|
|00005b00| 70 65 72 43 61 72 64 0d | 2d 2d 2d 0d 73 65 74 20 |perCard.|---.set |
|00005b10| 63 75 72 73 6f 72 20 74 | 6f 20 77 61 74 63 68 0d |cursor t|o watch.|
|00005b20| 70 75 74 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |put the |number o|
|00005b30| 66 20 6c 69 6e 65 73 20 | 69 6e 20 72 65 73 6f 75 |f lines |in resou|
|00005b40| 72 63 65 73 53 65 6c 65 | 63 74 65 64 20 69 6e 74 |rcesSele|cted int|
|00005b50| 6f 20 6e 75 6d 62 65 72 | 4f 66 52 65 73 0d 72 65 |o number|OfRes.re|
|00005b60| 70 65 61 74 20 77 69 74 | 68 20 63 6f 75 6e 74 65 |peat wit|h counte|
|00005b70| 72 20 3d 20 31 20 74 6f | 20 6e 75 6d 62 65 72 4f |r = 1 to| numberO|
|00005b80| 66 52 65 73 0d 70 75 74 | 20 69 74 65 6d 20 31 20 |fRes.put| item 1 |
|00005b90| 6f 66 20 6c 69 6e 65 20 | 63 6f 75 6e 74 65 72 20 |of line |counter |
|00005ba0| 6f 66 20 72 65 73 6f 75 | 72 63 65 73 53 65 6c 65 |of resou|rcesSele|
|00005bb0| 63 74 65 64 20 69 6e 74 | 6f 20 45 72 52 65 73 54 |cted int|o ErResT|
|00005bc0| 79 70 65 0d 70 75 74 20 | 69 74 65 6d 20 32 20 6f |ype.put |item 2 o|
|00005bd0| 66 20 6c 69 6e 65 20 63 | 6f 75 6e 74 65 72 20 6f |f line c|ounter o|
|00005be0| 66 20 72 65 73 6f 75 72 | 63 65 73 53 65 6c 65 63 |f resour|cesSelec|
|00005bf0| 74 65 64 20 69 6e 74 6f | 20 45 72 52 65 73 4e 61 |ted into| ErResNa|
|00005c00| 6d 65 0d 70 75 74 20 69 | 74 65 6d 20 33 20 6f 66 |me.put i|tem 3 of|
|00005c10| 20 6c 69 6e 65 20 63 6f | 75 6e 74 65 72 20 6f 66 | line co|unter of|
|00005c20| 20 72 65 73 6f 75 72 63 | 65 73 53 65 6c 65 63 74 | resourc|esSelect|
|00005c30| 65 64 20 69 6e 74 6f 20 | 45 72 52 65 73 49 44 0d |ed into |ErResID.|
|00005c40| 4b 69 6c 6c 52 65 73 20 | 45 72 52 65 73 54 79 70 |KillRes |ErResTyp|
|00005c50| 65 2c 20 45 72 52 65 73 | 4e 61 6d 65 0d 0d 70 75 |e, ErRes|Name..pu|
|00005c60| 74 20 66 6c 64 20 69 64 | 20 35 20 69 6e 74 6f 20 |t fld id| 5 into |
|00005c70| 61 6c 74 65 72 6e 61 74 | 65 57 69 6e 64 6f 77 73 |alternat|eWindows|
|00005c80| 0d 69 66 20 61 6c 74 65 | 72 6e 61 74 65 57 69 6e |.if alte|rnateWin|
|00005c90| 64 6f 77 73 20 ad 20 65 | 6d 70 74 79 20 74 68 65 |dows . e|mpty the|
|00005ca0| 6e 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 63 6f |n.repeat| with co|
|00005cb0| 75 6e 74 65 72 20 3d 20 | 31 20 74 6f 20 28 74 68 |unter = |1 to (th|
|00005cc0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |e number| of line|
|00005cd0| 73 20 69 6e 20 61 6c 74 | 65 72 6e 61 74 65 57 69 |s in alt|ernateWi|
|00005ce0| 6e 64 6f 77 73 29 0d 69 | 66 20 69 74 65 6d 20 31 |ndows).i|f item 1|
|00005cf0| 20 6f 66 20 6c 69 6e 65 | 20 63 6f 75 6e 74 65 72 | of line| counter|
|00005d00| 20 6f 66 20 61 6c 74 65 | 72 6e 61 74 65 57 69 6e | of alte|rnateWin|
|00005d10| 64 6f 77 73 20 3d 20 45 | 72 52 65 73 4e 61 6d 65 |dows = E|rResName|
|00005d20| 20 74 68 65 6e 0d 64 65 | 6c 65 74 65 20 6c 69 6e | then.de|lete lin|
|00005d30| 65 20 63 6f 75 6e 74 65 | 72 20 6f 66 20 61 6c 74 |e counte|r of alt|
|00005d40| 65 72 6e 61 74 65 57 69 | 6e 64 6f 77 73 0d 70 75 |ernateWi|ndows.pu|
|00005d50| 74 20 61 6c 74 65 72 6e | 61 74 65 57 69 6e 64 6f |t altern|ateWindo|
|00005d60| 77 73 20 69 6e 74 6f 20 | 66 6c 64 20 69 64 20 35 |ws into |fld id 5|
|00005d70| 0d 65 78 69 74 20 72 65 | 70 65 61 74 0d 65 6e 64 |.exit re|peat.end|
|00005d80| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 | if.end |repeat.e|
|00005d90| 6e 64 20 69 66 0d 0d 65 | 6e 64 20 72 65 70 65 61 |nd if..e|nd repea|
|00005da0| 74 0d 2d 2d 2d 0d 69 66 | 20 74 68 65 20 52 65 73 |t.---.if| the Res|
|00005db0| 75 6c 74 20 ad 20 65 6d | 70 74 79 20 74 68 65 6e |ult . em|pty then|
|00005dc0| 0d 61 6e 73 77 65 72 20 | 74 68 65 20 52 65 73 75 |.answer |the Resu|
|00005dd0| 6c 74 0d 64 6f 4d 65 6e | 75 20 22 43 6f 6d 70 61 |lt.doMen|u "Compa|
|00005de0| 63 74 20 53 74 61 63 6b | 22 0d 65 78 69 74 20 74 |ct Stack|".exit t|
|00005df0| 6f 20 48 79 70 65 72 43 | 61 72 64 0d 65 6e 64 20 |o HyperC|ard.end |
|00005e00| 69 66 0d 64 6f 4d 65 6e | 75 20 22 43 6f 6d 70 61 |if.doMen|u "Compa|
|00005e10| 63 74 20 53 74 61 63 6b | 22 0d 62 65 65 70 0d 61 |ct Stack|".beep.a|
|00005e20| 6e 73 77 65 72 20 22 41 | 6c 6c 20 22 26 6e 75 6d |nswer "A|ll "&num|
|00005e30| 62 65 72 4f 66 52 65 73 | 26 22 20 52 65 73 6f 75 |berOfRes|&" Resou|
|00005e40| 72 63 65 73 20 45 72 61 | 73 65 64 21 22 0d 65 78 |rces Era|sed!".ex|
|00005e50| 69 74 20 74 6f 20 48 79 | 70 65 72 43 61 72 64 0d |it to Hy|perCard.|
|00005e60| 65 6c 73 65 0d 70 75 74 | 20 69 74 65 6d 20 31 20 |else.put| item 1 |
|00005e70| 6f 66 20 72 65 73 6f 75 | 72 63 65 73 53 65 6c 65 |of resou|rcesSele|
|00005e80| 63 74 65 64 20 69 6e 74 | 6f 20 45 72 52 65 73 54 |cted int|o ErResT|
|00005e90| 79 70 65 0d 70 75 74 20 | 69 74 65 6d 20 32 20 6f |ype.put |item 2 o|
|00005ea0| 66 20 72 65 73 6f 75 72 | 63 65 73 53 65 6c 65 63 |f resour|cesSelec|
|00005eb0| 74 65 64 20 69 6e 74 6f | 20 45 72 52 65 73 4e 61 |ted into| ErResNa|
|00005ec0| 6d 65 0d 70 75 74 20 69 | 74 65 6d 20 33 20 6f 66 |me.put i|tem 3 of|
|00005ed0| 20 72 65 73 6f 75 72 63 | 65 73 53 65 6c 65 63 74 | resourc|esSelect|
|00005ee0| 65 64 20 69 6e 74 6f 20 | 45 72 52 65 73 49 44 0d |ed into |ErResID.|
|00005ef0| 61 6e 73 77 65 72 20 22 | 45 72 61 73 65 20 22 26 |answer "|Erase "&|
|00005f00| 51 55 4f 54 45 26 45 72 | 52 65 73 4e 61 6d 65 26 |QUOTE&Er|ResName&|
|00005f10| 51 55 4f 54 45 20 77 69 | 74 68 20 22 4f 4b 22 20 |QUOTE wi|th "OK" |
|00005f20| 6f 72 20 22 43 61 6e 63 | 65 6c 22 0d 69 66 20 69 |or "Canc|el".if i|
|00005f30| 74 20 69 73 20 22 43 61 | 6e 63 65 6c 22 20 74 68 |t is "Ca|ncel" th|
|00005f40| 65 6e 20 65 78 69 74 20 | 74 6f 20 48 79 70 65 72 |en exit |to Hyper|
|00005f50| 43 61 72 64 0d 0d 4b 69 | 6c 6c 52 65 73 20 45 72 |Card..Ki|llRes Er|
|00005f60| 52 65 73 54 79 70 65 2c | 45 72 52 65 73 4e 61 6d |ResType,|ErResNam|
|00005f70| 65 0d 70 75 74 20 66 6c | 64 20 69 64 20 35 20 69 |e.put fl|d id 5 i|
|00005f80| 6e 74 6f 20 61 6c 74 65 | 72 6e 61 74 65 57 69 6e |nto alte|rnateWin|
|00005f90| 64 6f 77 73 0d 69 66 20 | 61 6c 74 65 72 6e 61 74 |dows.if |alternat|
|00005fa0| 65 57 69 6e 64 6f 77 73 | 20 ad 20 65 6d 70 74 79 |eWindows| . empty|
|00005fb0| 20 74 68 65 6e 0d 72 65 | 70 65 61 74 20 77 69 74 | then.re|peat wit|
|00005fc0| 68 20 63 6f 75 6e 74 65 | 72 20 3d 20 31 20 74 6f |h counte|r = 1 to|
|00005fd0| 20 28 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | (the nu|mber of |
|00005fe0| 6c 69 6e 65 73 20 69 6e | 20 61 6c 74 65 72 6e 61 |lines in| alterna|
|00005ff0| 74 65 57 69 6e 64 6f 77 | 73 29 0d 69 66 20 69 74 |teWindow|s).if it|
|00006000| 65 6d 20 31 20 6f 66 20 | 6c 69 6e 65 20 63 6f 75 |em 1 of |line cou|
|00006010| 6e 74 65 72 20 6f 66 20 | 61 6c 74 65 72 6e 61 74 |nter of |alternat|
|00006020| 65 57 69 6e 64 6f 77 73 | 20 3d 20 45 72 52 65 73 |eWindows| = ErRes|
|00006030| 4e 61 6d 65 20 74 68 65 | 6e 0d 64 65 6c 65 74 65 |Name the|n.delete|
|00006040| 20 6c 69 6e 65 20 63 6f | 75 6e 74 65 72 20 6f 66 | line co|unter of|
|00006050| 20 61 6c 74 65 72 6e 61 | 74 65 57 69 6e 64 6f 77 | alterna|teWindow|
|00006060| 73 0d 70 75 74 20 61 6c | 74 65 72 6e 61 74 65 57 |s.put al|ternateW|
|00006070| 69 6e 64 6f 77 73 20 69 | 6e 74 6f 20 66 6c 64 20 |indows i|nto fld |
|00006080| 69 64 20 35 0d 65 78 69 | 74 20 72 65 70 65 61 74 |id 5.exi|t repeat|
|00006090| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|000060a0| 61 74 0d 65 6e 64 20 69 | 66 0d 0d 69 66 20 74 68 |at.end i|f..if th|
|000060b0| 65 20 52 65 73 75 6c 74 | 20 ad 20 65 6d 70 74 79 |e Result| . empty|
|000060c0| 20 74 68 65 6e 0d 61 6e | 73 77 65 72 20 74 68 65 | then.an|swer the|
|000060d0| 20 52 65 73 75 6c 74 0d | 64 6f 4d 65 6e 75 20 22 | Result.|doMenu "|
|000060e0| 43 6f 6d 70 61 63 74 20 | 53 74 61 63 6b 22 0d 65 |Compact |Stack".e|
|000060f0| 78 69 74 20 74 6f 20 48 | 79 70 65 72 43 61 72 64 |xit to H|yperCard|
|00006100| 0d 65 6e 64 20 69 66 0d | 64 6f 4d 65 6e 75 20 22 |.end if.|doMenu "|
|00006110| 43 6f 6d 70 61 63 74 20 | 53 74 61 63 6b 22 0d 62 |Compact |Stack".b|
|00006120| 65 65 70 0d 61 6e 73 77 | 65 72 20 22 20 52 65 73 |eep.answ|er " Res|
|00006130| 6f 75 72 63 65 20 22 26 | 51 55 4f 54 45 26 45 72 |ource "&|QUOTE&Er|
|00006140| 52 65 73 4e 61 6d 65 26 | 51 55 4f 54 45 26 22 20 |ResName&|QUOTE&" |
|00006150| 45 72 61 73 65 64 21 22 | 0d 65 78 69 74 20 74 6f |Erased!"|.exit to|
|00006160| 20 48 79 70 65 72 43 61 | 72 64 0d 65 6e 64 20 69 | HyperCa|rd.end i|
|00006170| 66 0d 65 6e 64 20 65 72 | 61 73 65 52 65 73 6f 75 |f.end er|aseResou|
|00006180| 72 63 65 73 0d 0d 6f 6e | 20 63 72 65 61 74 65 52 |rces..on| createR|
|00006190| 65 73 6f 75 72 63 65 73 | 0d 58 48 6f 6d 65 52 65 |esources|.XHomeRe|
|000061a0| 73 6f 75 72 63 65 73 0d | 67 6c 6f 62 61 6c 20 46 |sources.|global F|
|000061b0| 6e 61 6d 65 0d 67 6c 6f | 62 61 6c 20 74 68 65 58 |name.glo|bal theX|
|000061c0| 52 65 73 6f 75 72 63 65 | 73 0d 67 6c 6f 62 61 6c |Resource|s.global|
|000061d0| 20 61 6c 6c 52 65 73 0d | 70 75 74 20 74 68 65 20 | allRes.|put the |
|000061e0| 73 68 6f 72 74 20 6e 61 | 6d 65 20 6f 66 20 74 68 |short na|me of th|
|000061f0| 69 73 20 73 74 61 63 6b | 20 69 6e 74 6f 20 46 6e |is stack| into Fn|
|00006200| 61 6d 65 0d 61 6e 73 77 | 65 72 20 22 50 69 63 74 |ame.answ|er "Pict|
|00006210| 75 72 65 20 6f 72 20 53 | 6f 75 6e 64 22 20 77 69 |ure or S|ound" wi|
|00006220| 74 68 20 22 43 61 6e 63 | 65 6c 22 20 6f 72 20 22 |th "Canc|el" or "|
|00006230| 53 6f 75 6e 64 22 20 6f | 72 20 22 50 69 63 74 75 |Sound" o|r "Pictu|
|00006240| 72 65 22 0d 69 66 20 69 | 74 20 69 73 20 22 43 61 |re".if i|t is "Ca|
|00006250| 6e 63 65 6c 22 20 74 68 | 65 6e 20 65 78 69 74 20 |ncel" th|en exit |
|00006260| 74 6f 20 48 79 70 65 72 | 43 61 72 64 0d 69 66 20 |to Hyper|Card.if |
|00006270| 69 74 20 69 73 20 22 53 | 6f 75 6e 64 22 20 74 68 |it is "S|ound" th|
|00006280| 65 6e 0d 72 65 63 6f 72 | 64 53 6f 75 6e 64 0d 65 |en.recor|dSound.e|
|00006290| 78 69 74 20 74 6f 20 48 | 79 70 65 72 43 61 72 64 |xit to H|yperCard|
|000062a0| 0d 65 6e 64 20 69 66 0d | 61 6e 73 77 65 72 20 22 |.end if.|answer "|
|000062b0| 43 72 65 61 74 65 20 50 | 49 43 54 20 72 65 73 6f |Create P|ICT reso|
|000062c0| 75 72 63 65 20 66 72 6f | 6d 3a 22 26 52 45 54 55 |urce fro|m:"&RETU|
|000062d0| 52 4e 26 c2 0d 22 43 61 | 72 64 20 50 69 63 74 75 |RN&.."Ca|rd Pictu|
|000062e0| 72 65 20 6f 72 20 43 6c | 69 70 42 6f 61 72 64 22 |re or Cl|ipBoard"|
|000062f0| 20 77 69 74 68 20 22 43 | 6c 69 70 42 6f 61 72 64 | with "C|lipBoard|
|00006300| 22 20 6f 72 20 22 43 61 | 72 64 22 20 6f 72 20 22 |" or "Ca|rd" or "|
|00006310| 43 61 6e 63 65 6c 22 0d | 69 66 20 69 74 20 69 73 |Cancel".|if it is|
|00006320| 20 22 43 61 6e 63 65 6c | 22 20 74 68 65 6e 20 65 | "Cancel|" then e|
|00006330| 78 69 74 20 74 6f 20 48 | 79 70 65 72 43 61 72 64 |xit to H|yperCard|
|00006340| 0d 70 75 74 20 69 74 20 | 69 6e 74 6f 20 6f 72 69 |.put it |into ori|
|00006350| 67 69 6e 0d 61 73 6b 20 | 22 50 49 43 54 20 20 6e |gin.ask |"PICT n|
|00006360| 61 6d 65 3a 22 20 77 69 | 74 68 20 22 58 50 69 63 |ame:" wi|th "XPic|
|00006370| 74 22 0d 69 66 20 69 74 | 20 69 73 20 65 6d 70 74 |t".if it| is empt|
|00006380| 79 20 74 68 65 6e 0d 62 | 65 65 70 0d 65 78 69 74 |y then.b|eep.exit|
|00006390| 20 74 6f 20 48 79 70 65 | 72 43 61 72 64 0d 65 6e | to Hype|rCard.en|
|000063a0| 64 20 69 66 0d 73 65 74 | 20 63 75 72 73 6f 72 20 |d if.set| cursor |
|000063b0| 74 6f 20 77 61 74 63 68 | 0d 69 66 20 74 68 65 20 |to watch|.if the |
|000063c0| 6e 75 6d 62 65 72 20 6f | 66 20 77 6f 72 64 73 20 |number o|f words |
|000063d0| 69 6e 20 69 74 20 3e 20 | 31 20 74 68 65 6e 0d 70 |in it > |1 then.p|
|000063e0| 75 74 20 52 45 54 55 52 | 4e 26 22 41 20 6e 61 6d |ut RETUR|N&"A nam|
|000063f0| 65 20 6d 75 73 74 20 62 | 65 20 31 20 77 6f 72 64 |e must b|e 1 word|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.